update router url when a new nomadnetwork page is loaded

This commit is contained in:
liamcottle 2025-01-22 00:03:38 +13:00
commit b215c4ac31

View file

@ -344,6 +344,14 @@ export default {
},
async loadNodePage(destinationHash, pagePath, fieldData = null, addToHistory = true, loadFromCache = true) {
// update current route
this.$router.replace({
name: "nomadnetwork",
params: {
destinationHash: destinationHash,
},
});
// get new sequence for this page load
const seq = ++this.nodePageRequestSequence;
@ -677,14 +685,6 @@ export default {
// update selected node
this.selectedNode = node;
// update current route
this.$router.replace({
name: "nomadnetwork",
params: {
destinationHash: node.destination_hash,
},
});
// load default node page
this.loadNodePage(node.destination_hash, this.defaultNodePagePath);