diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 036e8b0cb2bef5d2738347ab93a1077f1656ea4a..77e6866f7c58228a6a642cd9a8bd917c32c963f1 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -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 ~~~~~~~ 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); }