rack-rewrite
rack-rewrite copied to clipboard
Named Anchor gets dropped
Hey,
We are just upgrading from rack-rewrite 0.2.1 to 1.0.2 and we noticed that named anchors are not getting included in the redirect path.
For example if you try to redirect the url "/Test?q=cool#notcool" with a regex or other means the resultant redirect path will not include the #notcool on the end.
It looks like this is because your using env['REQUEST_URI'] in line 74 or rule.rb 0.2.1 and env['PATH_INFO'] + "?" + env['QUERY_STRING'] in line 159 1.0.2.
Is it an intentional change? or just a mistake?
Thanks
This is a mistake-- I'll happily accept a patch.