From b48162a3e25844b14cb2991d790f9f51f5b2344b Mon Sep 17 00:00:00 2001 From: "Matt (IPv4) Cowley" Date: Wed, 21 Oct 2020 16:58:08 +0100 Subject: [PATCH] Always use absolute url for query params (#185) --- src/nginxconfig/templates/global_sections/tools.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nginxconfig/templates/global_sections/tools.vue b/src/nginxconfig/templates/global_sections/tools.vue index 92f0ba9..89da12e 100644 --- a/src/nginxconfig/templates/global_sections/tools.vue +++ b/src/nginxconfig/templates/global_sections/tools.vue @@ -200,7 +200,7 @@ THE SOFTWARE. watch: { // When the share link changes, update the site query shareQuery(query) { - window.history.replaceState({}, '', query || window.location.pathname); + window.history.replaceState({}, '', `${window.location.pathname}${query || ''}`); }, // Disable symlink if modularized structure is disabled '$props.data.modularizedStructure': {