From 5502c8c6bb554fb466ec0fa2654fee20d4129f66 Mon Sep 17 00:00:00 2001 From: MattIPv4 Date: Tue, 9 Jun 2020 16:54:12 +0100 Subject: [PATCH] Fix updating URL when no query params --- 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 b3c8620..091d6a0 100644 --- a/src/nginxconfig/templates/global_sections/tools.vue +++ b/src/nginxconfig/templates/global_sections/tools.vue @@ -199,7 +199,7 @@ THE SOFTWARE. watch: { // When the share link changes, update the site query shareQuery(query) { - window.history.replaceState({}, '', query); + window.history.replaceState({}, '', query || window.location.pathname); }, // Disable symlink if modularized structure is disabled '$props.data.modularizedStructure': {