# Add anchors on remote links?

**URL:** <https://www.ruby-forum.com/t/add-anchors-on-remote-links/106990>\
**Category:** Rails\
**Created:** [June 16, 2007, 4:46am UTC](https://www.ruby-forum.com/t/add-anchors-on-remote-links/106990 "2007-06-16T04:46:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Post date:** [June 16, 2007, 4:46am UTC](https://www.ruby-forum.com/t/add-anchors-on-remote-links/106990/1 "2007-06-16T04:46:17Z")

</div>

Is it possible to add an anchor (#whatever) to the end of the url when a  
remote link is clicked?

If I do \<%= link\_to\_remote “Link”, :url =\> {:controller =\>  
“silly\_controller”} %\>, it does nothing to the url. I would like for it  
to add #silly to the end of the url.

Any idea how to do this?

Thanks for your help.
