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': {