Jumping to an anchor tag in routes

Posted 1 year ago by aminbaig

I have home page with the section

  <section id="features" class="container services">

In my navigation I have the following link:

  <li><a class="page-scroll" href="#features">Features</a></li>

When I click on the link while I am on the home page it scrolls down to the relevant section, but since my navigation is in a partial, when I am on some other page and click on the link it does not take me back to home and the specified section.

My question is: How would I modify this link

{{route('home')}} 

to include the section id. Thanks in advance

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.