From d9736ea032755988acbe742f750799780e73e80d Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 13 Jan 2011 10:16:36 -0800 Subject: [PATCH] One final config lookup removed, for the gateway method itself. --- lib/WebGUI/Session/Url.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Session/Url.pm b/lib/WebGUI/Session/Url.pm index ff756bbef..347edd048 100644 --- a/lib/WebGUI/Session/Url.pm +++ b/lib/WebGUI/Session/Url.pm @@ -177,7 +177,7 @@ sub gateway { my $pageUrl = shift; my $pairs = shift; my $skipPreventProxyCache = shift; - my $url = $self->make_urlmap_work($self->session->config->get("gateway")).'/'.$pageUrl; + my $url = $self->make_urlmap_work($self->session->request->base->path).'/'.$pageUrl; $url =~ tr{/}{/}s; if ($self->session->setting->get("preventProxyCache") == 1 and !$skipPreventProxyCache) { $url = $self->append($url,"noCache=".int(rand(1001)).':'.time());