1
0
mirror of https://github.com/writeas/writefreely synced 2025-01-21 03:46:06 +01:00

Remove params from URL after loading admin panel

This ensures that refreshing the page doesn't include any past success /
failure messages.
This commit is contained in:
Matt Baer 2018-12-03 18:34:36 -05:00
parent d2f89c6360
commit 573ce02739

View File

@ -183,6 +183,10 @@ function savePage(el) {
</div>
</div>
<script>
history.replaceState(null, "", "/admin"+window.location.hash);
</script>
{{template "footer" .}}
{{template "body-end" .}}