AFAIK anchors are thrown away by the web-server. It's purely a client-side thing.
How to create route that goes to an anchor tag in rails
-
15-10-2022 - |
Question
I have a one page layout with sections. But, I also have a couple pages that are separate from the main page. I want the user experience to be seamless when they navigate from the main page, to the satellite pages, and back. I can link_to the anchor tag, but then I end up with the anchor in the url... I want a route to handle it so that the anchor is not in the url...
Is there a way to build a route that will go to an anchor tag?
No correct solution
OTHER TIPS
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow