Site URL: https://www.smoredate.com/
Once the web page loads, I want to automatically jump to a section on the home page without using anchor links or having to press a button/click a link. I created a redirect using div as below:
<div id="scroll-here">
</div>
It takes you to the Home page on the navigation bar with the anchor tag in the url slug--> /home#scroll-here
Then I set up a script in the landing page where I want the auto scroll to work:
<script>var url= "https://www.smoredate.com/home#scroll-here"; window.location = url;
</script>
The code works on the front end but Squarespace dashboard never stops loading, I'm assuming it's jumping between the two home pages: the one on the navigation bar and the landing home page! Where did I go wrong?! :(