From 7b1f7ff61b06f0d3a16adec1fd3e436937f71202 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Mon, 24 Mar 2014 20:58:20 +0200 Subject: [PATCH] Fix redirect after submit --- lib/Gruntmaster/Page/Submit.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2