diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/static/templates/admin/base.hbs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/static/templates/admin/base.hbs b/src/static/templates/admin/base.hbs index 220b562d..8b5e891b 100644 --- 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(); |