rack-rewrite icon indicating copy to clipboard operation
rack-rewrite copied to clipboard

Named Anchor gets dropped

Open dedman opened this issue 14 years ago • 1 comments

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

dedman avatar May 04 '11 06:05 dedman

This is a mistake-- I'll happily accept a patch.

jtrupiano avatar Aug 15 '11 14:08 jtrupiano