Allow template diagnostics to work when a session asset is not set. Add a way to get the raw, encoded URL from the request object.
This commit is contained in:
parent
358bc1557a
commit
4c31d182f8
3 changed files with 24 additions and 2 deletions
|
|
@ -246,6 +246,23 @@ sub getBackToSiteURL {
|
|||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 getRawUrl ( )
|
||||
|
||||
Gets the URL from the request object and decodes it from UTF8. This has the gateway and
|
||||
query and fragment parts.
|
||||
|
||||
=cut
|
||||
|
||||
sub getRawUrl {
|
||||
my $self = shift;
|
||||
unless ($self->{_rawUrl}) {
|
||||
$self->{_rawUrl} = decode_utf8($self->session->request->uri);
|
||||
}
|
||||
return $self->{_rawUrl};
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 getRefererUrl ( )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue