Ok. Discovered the culprits of the issues I was having.
1st issue. My code had a scroll to script that took the user to the center of the horizontal middle of the page.
2nd issue. After removing the code in the 1st issue I ran into another issue. Namely, the link worked just once. Once I refresh, it goes away. This was due to I had a link conversion set in .htaccess file which converted my original link https: