Is there a way to add a fragment identifier to a path helper?
I try to link back from my login page to the about section in the landing page.
<a href="localhost:4000/#about">ABOUT</a>
Using this path helper, I only get back to the landing page:
<li><a href="<%= page_path(@conn, :index) %>">ABOUT</a></li>
But I would like to get to the about section at the following path:
localhost:4000/#about
I tried to combine the path, but without success:
<li><a href="<%= page_path(@conn, :index) <> "#about" %>">ABOUT</a></li>
Thank you in advanced for any help!
One cannot nest the double quotes:
the above obviously results in an error, because it reads as shown below, strings are denoted:
To make is work, use the
~ssigil: