From: Marius Gavrilescu Date: Mon, 24 Mar 2014 18:58:20 +0000 (+0200) Subject: Fix redirect after submit X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=7b1f7ff61b06f0d3a16adec1fd3e436937f71202;p=plack-app-gruntmaster.git Fix redirect after submit --- diff --git a/lib/Gruntmaster/Page/Submit.pm b/lib/Gruntmaster/Page/Submit.pm index 5f7d727..0c42de9 100644 --- a/lib/Gruntmaster/Page/Submit.pm +++ b/lib/Gruntmaster/Page/Submit.pm @@ -43,7 +43,7 @@ sub generate{ $contest //= ''; #PUBLISH 'jobs', "$contest.$job"; - [303, [Location => $r->path =~ s,/pb/\w+/submit$,/log/,r], ['']] + [303, [Location => ($contest ? "/ct/$contest/log/" : '/log/')], ['']] } 1