forked from lix-project/hydra
* Catalyst now escapes slashes to %2f, which broke defaultUriForProduct.
This commit is contained in:
parent
9f78a942bc
commit
c51af99ecf
|
@ -154,7 +154,7 @@ sub defaultUriForProduct {
|
||||||
my $x = $product->productnr
|
my $x = $product->productnr
|
||||||
. ($product->name ? "/" . $product->name : "")
|
. ($product->name ? "/" . $product->name : "")
|
||||||
. ($product->defaultpath ? "/" . $product->defaultpath : "");
|
. ($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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue