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

Use location.replace instead of location.href in JavaScript

parent 875906c2
No related branches found
No related tags found
1 merge request!464Resolve "Support PDF generation via a headless Chromium running in the background using celery"
......@@ -49,7 +49,7 @@ function customSuccess(progressBarElement, progressBarMessageElement) {
$("#result-box").show();
const redirect = "redirect_on_success" in OPTIONS;
if (redirect) {
window.location.href = OPTIONS.redirect_on_success;
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