Frank Wiles wrote:
> On Fri, 21 Apr 2006 11:49:19 -0400
> Michael Peters <[EMAIL PROTECTED]> wrote:
> 
>> I have a application with mod_perl Authen/Authz handlers that will
>> redirect to a login screen (via ErrorDocument) if the user is not
>> logged in. Users follow links in emails and these links occasionally
>> have anchors in them:
>>   http://mysite.com/app?foo=bar#123
>>
>> For the ErrorDocument 403 page that displays the login, it populates a
>> 'back' param into a hidden form input so that after a login we can
>> take the user to exactly where they want to go. Pretty standard
>> stuff. To create this 'back' URL I use something like
>>
>>   my $url = $r->prev->uri . '?' . $r->prev->args;
>>
>> 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?

-- 
Michael Peters
Developer
Plus Three, LP

Reply via email to