This project is archived and is in readonly mode.

#4762 open
Jan Berkel

url_for :escape parameter is ignored

Reported by Jan Berkel | June 3rd, 2010 @ 06:42 PM | in 3.0.6

The rdoc for url_for in actionpack/lib/action_view/helpers/url_helper.rb states:

   url_for(:action => 'checkout', :anchor => 'tax&ship', :escape => false) 
   => /testing/jump/#tax&ship

http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.htm...

however anchors always get url escaped, the :escape parameter is completely ignored. Is this intended behaviour? It would be nice to make the escaping optional.

if it is intended behaviour the documentation should be updated.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages