Skip to content
Snippets Groups Projects
Verified Commit 770b5558 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Do not redirect to empty URLs on progress page

parent f493f004
No related branches found
No related tags found
1 merge request!650Resolve "Progress page tries to redirect even if redirect URL is empty"
Pipeline #15255 canceled
......@@ -20,6 +20,7 @@ Fixed
~~~~~
* Fix installation documentation (nginx, uWSGI).
* Progress page tried to redirect even if the URL is empty.
Removed
~~~~~~~
......
......@@ -47,7 +47,7 @@ function customSuccess(progressBarElement, progressBarMessageElement) {
$("#result-icon").text("check_circle");
$("#result-text").text(OPTIONS.success);
$("#result-box").show();
const redirect = "redirect_on_success" in OPTIONS;
const redirect = "redirect_on_success" in OPTIONS && OPTIONS.redirect_on_success;
if (redirect) {
window.location.replace(OPTIONS.redirect_on_success);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment