From c51af99ecf24350dcdbff6782b02ed5001565497 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 19 Aug 2011 16:23:01 +0000 Subject: [PATCH] * Catalyst now escapes slashes to %2f, which broke defaultUriForProduct. --- src/lib/Hydra/Controller/Build.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index 886e359b..9ad0fef1 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -154,7 +154,7 @@ sub defaultUriForProduct { my $x = $product->productnr . ($product->name ? "/" . $product->name : "") . ($product->defaultpath ? "/" . $product->defaultpath : ""); - return $c->uri_for($self->action_for("download"), $c->req->captures, $x, @path); + return $c->uri_for($self->action_for("download"), $c->req->captures, (split /\//, $x), @path); }