]> iEval git - gruntmaster-page.git/commitdiff
Fix redirect after submit
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 24 Mar 2014 18:58:20 +0000 (20:58 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 24 Mar 2014 18:58:20 +0000 (20:58 +0200)
lib/Gruntmaster/Page/Submit.pm

index 5f7d7279006a0d0804c04e28fd537537e6d07d8e..0c42de9ff1252058018c527be1702d5ff54c235e 100644 (file)
@@ -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
This page took 0.025437 seconds and 4 git commands to generate.