Michael Peters wrote:
Frank Wiles wrote:
[...]
Which works fine except that the anchor info (#123) is lost. Is there
anyway to get this from the original request's URL?
I think you're looking for $r->prev->unparsed_uri
Thanks, but I guess I should have mentioned that I'm using mod_perl 1
and this method doesn't exist. Is there some equivalent that I can do,
or is this information just lost?
The 2.0 docs seem to indicate that this piece is called the 'fragment'
[1], and there is a corresponding fragment method in mod_perl1 [2] but
is not described in as much detail. I haven't tried that method but it
might be what you're looking for.
[1]
http://redhotpenguin.com/mirrors/perl.apache.org/docs/2.0/api/APR/URI.html#C_fragment_
[2]
http://redhotpenguin.com/mirrors/perl.apache.org/docs/1.0/api/Apache/URI.html