mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-08 20:39:08 +08:00
Fix updating URL when no query params
This commit is contained in:
@@ -199,7 +199,7 @@ THE SOFTWARE.
|
|||||||
watch: {
|
watch: {
|
||||||
// When the share link changes, update the site query
|
// When the share link changes, update the site query
|
||||||
shareQuery(query) {
|
shareQuery(query) {
|
||||||
window.history.replaceState({}, '', query);
|
window.history.replaceState({}, '', query || window.location.pathname);
|
||||||
},
|
},
|
||||||
// Disable symlink if modularized structure is disabled
|
// Disable symlink if modularized structure is disabled
|
||||||
'$props.data.modularizedStructure': {
|
'$props.data.modularizedStructure': {
|
||||||
|
Reference in New Issue
Block a user