The following will create the link the way you want -
link_to "my-privacy", "#privacy"
In most browsers, the path to the current page will be prefix, but if you check the source of the page, the following html will be shown -
<a href="#privacy">my-privacy</a>
This will most likely serve your purpose for the user interface, you just have to split the URL into "#" using Javascript.
source share