Edit: You can create a fragment identifier like this route('home') . '#id'
Aug 19, 2017
4
Level 1
Jumping to an anchor tag in routes
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 or to participate in this conversation.