From d6dc6070f3cc4c1a19b65cdee8edd413c74df0ea Mon Sep 17 00:00:00 2001 From: BlackDex Date: Sat, 3 Dec 2022 17:28:25 +0100 Subject: Fix admin repost warning. Currently when you login into the admin, and then directly hit the save button, it will come with a re-post/re-submit warning. This has to do with the `window.location.reload()` function, which triggers the admin login POST again. By changing the way to reload the page, we prevent this repost. --- src/static/templates/admin/base.hbs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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 @@