Skip to content

Commit 5ad34a9

Browse files
committedMar 12, 2012
Plack::Request->path_info includes the query string! Argh.
1 parent 2fd4f74 commit 5ad34a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎lib/WebGUI/Session/Url.pm

+3-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,9 @@ Returns the URL of the page requested (no gateway, no query params, just the pag
324324
sub getRequestedUrl {
325325
my $self = shift;
326326
unless ($self->{_requestedUrl}) {
327-
$self->{_requestedUrl} = decode_utf8($self->session->request->path_info);
327+
my $path_info = $self->session->request->path_info;
328+
$path_info =~ s/\?.*//;
329+
$self->{_requestedUrl} = decode_utf8($path_info);
328330
}
329331
return $self->{_requestedUrl};
330332
}

0 commit comments

Comments
 (0)