commit 06189a58fe00df7411668678fb0861d9d632ddec parent 37d0792a7d96b356950c6b1c6d1ad44e0bf76d3c Author: Daniel GarcĂa <dani-garcia@users.noreply.github.com> Date: Sun, 4 Dec 2022 23:16:54 +0100 Merge branch 'BlackDex-fix-admin-repost' Diffstat:
M | src/static/templates/admin/base.hbs | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/static/templates/admin/base.hbs b/src/static/templates/admin/base.hbs @@ -32,7 +32,11 @@ <script> 'use strict'; - function reload() { window.location.reload(); } + function reload() { + // Reload the page by setting the exact same href + // Using window.location.reload() could cause a repost. + window.location = window.location.href; + } function msg(text, reload_page = true) { text && alert(text); reload_page && reload();