From 4bf184009c79b059dc316488207f1831f88a67a2 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Tue, 15 Jun 2010 07:09:05 -0500 Subject: [PATCH] fix url generation --- lib/WebGUI/Session/Url.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Session/Url.pm b/lib/WebGUI/Session/Url.pm index 0bbba8750..fab15004c 100644 --- a/lib/WebGUI/Session/Url.pm +++ b/lib/WebGUI/Session/Url.pm @@ -200,8 +200,8 @@ sub make_urlmap_work { return $url; } my $uri = $self->session->request->base; - $uri->path($uri->path . $url); - return $uri->path; + $uri = URI->new($url)->abs($uri->path); + return $uri->canonical->path; } #-------------------------------------------------------------------