diff --git a/CHANGELOG.rst b/CHANGELOG.rst index c4d2d9d6b8215dd19dccda5f98e060f3b87e3f67..bc269b133f095be48576f3055bf7f1a19e343a94 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -20,6 +20,7 @@ Fixed ~~~~~ * Fix installation documentation (nginx, uWSGI). +* Progress page tried to redirect even if the URL is empty. Removed ~~~~~~~ diff --git a/aleksis/core/static/js/progress.js b/aleksis/core/static/js/progress.js index c9b1be9039faf80e0005ac5a0fb0daa8d1373c8c..9be718b7e67f30e8cc77a436755e50f08b540fd3 100644 --- a/aleksis/core/static/js/progress.js +++ b/aleksis/core/static/js/progress.js @@ -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); }