Escape pound key in url with globbing

Hey everyone,

I am using the routes globbing in rails 3.0.9
There when I add at any url a *anything at the end, the rest of the
url should be contained in the params[:anything] filed.

some_url_route/*anything

This is true and also works for most of the special characters like $,
^, @ ect...
However, it is not working for the pound key '#'
The string simply stops at this symbol.
I can escape this by escaping the # with %23.
However, this is not what I want. I really want users to be able to
put the # key into the string!
Does anyone know if this behaviour of rails is on purpose and if there
is any other workaround
other than using %23??

Thanks a lot for your help,
Karen

This isn't really a rails thing. The bit after the # is known as the
fragment and isn't sent by the browser to the server at all

Fred

As Fred says -- works as designed :slight_smile:

I suggest if you're developing web apps you should be familiar with --
that is, have *read* --

   http://www.w3.org/Protocols/rfc2616/rfc2616.html

FWIW,

Sure I know about this, but there are other special characters which
normally need to be escaped in URL's as well
and these are forwarded by rails well enough, that's why I was
wondering.
Anyhow thanks for lecturing :wink:

Karen wrote in post #1015150:

Sure I know about this, but there are other special characters which
normally need to be escaped in URL's as well
and these are forwarded by rails well enough,

Is it your belief that users enter their urls in a rails app?