Skip to content
Snippets Groups Projects
Verified Commit 825ef617 authored by Jonathan Weth's avatar Jonathan Weth :keyboard: Committed by Nik | Klampfradler
Browse files

Do not redirect to empty URLs on progress page

parent 407d3ab4
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@ Fixed
* Fix installation documentation (nginx, uWSGI).
* Use a set for data checks registry to prevent double entries.
* 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