Commit 97a0b5be authored by Nicolas Wavrant's avatar Nicolas Wavrant

runner: all runner webpages do not redirect to viewLog on Build&Run

parent efad6d9c
...@@ -130,7 +130,8 @@ function bindRun() { ...@@ -130,7 +130,8 @@ function bindRun() {
} else { } else {
if (!isRunning()) { if (!isRunning()) {
setCookie("slapgridCMD", "Software"); setCookie("slapgridCMD", "Software");
window.location.href = $SCRIPT_ROOT + "/viewLog"; if (window.location.pathname === "/viewLog")
window.location.href = $SCRIPT_ROOT + "/viewLog";
} }
} }
return false; return false;
...@@ -141,7 +142,8 @@ function bindRun() { ...@@ -141,7 +142,8 @@ function bindRun() {
} else { } else {
if (!isRunning()) { if (!isRunning()) {
setCookie("slapgridCMD", "Instance"); setCookie("slapgridCMD", "Instance");
window.location.href = $SCRIPT_ROOT + "/viewLog"; if (window.location.pathname === "/viewLog")
window.location.href = $SCRIPT_ROOT + "/viewLog";
} }
} }
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment