Fixed uri_for bug found by drewbie
[catagits/Catalyst-Runtime.git] / lib / Catalyst.pm
index 4ee787e..3a52ccf 100644 (file)
@@ -392,7 +392,7 @@ sub uri_for {
     my $base     = $c->request->base->clone;
     my $basepath = $base->path;
     $basepath =~ s/\/$//;
-    $basepath .= '/' if $basepath;
+    $basepath .= '/';
     my $match = $c->request->match;
     $match =~ s/^\///;
     $match .= '/' if $match;