From 345c96f99aa98d5e90a46fa3f175ec0a2e6d4f36 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Sat, 9 Jul 2022 11:49:39 +1000
Subject: Fix links-to-node failing on load

Was setting SERVER_URL incorrectly
Also changed server API to include 'excl' param
---
 src/components/TileInfoModal.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/TileInfoModal.vue')

diff --git a/src/components/TileInfoModal.vue b/src/components/TileInfoModal.vue
index e5ea77b..a70215d 100644
--- a/src/components/TileInfoModal.vue
+++ b/src/components/TileInfoModal.vue
@@ -240,7 +240,7 @@ export default defineComponent({
 		onLinkIconClick(evt: Event){
 			// Copy link to clipboard
 			let url = new URL(window.location.href);
-			url.search = 'node=' + encodeURIComponent(this.nodeName);
+			url.search = new URLSearchParams({node: this.nodeName});
 			navigator.clipboard.writeText(url.toString());
 			// Show visual indicator
 			this.linkCopied = true;
-- 
cgit v1.2.3

