From 55e281a57c2ac9acb18836ea7a48f5a553d924e2 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Tue, 26 Apr 2022 23:46:51 +1000
Subject: Change data URL path format

---
 src/components/SearchModal.vue | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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

diff --git a/src/components/SearchModal.vue b/src/components/SearchModal.vue
index 9c30cbc..f3bb237 100644
--- a/src/components/SearchModal.vue
+++ b/src/components/SearchModal.vue
@@ -20,11 +20,12 @@ export default defineComponent({
 			let input = this.$refs.searchInput as HTMLInputElement;
 			// Query server
 			let url = new URL(window.location.href);
-			url.pathname = '/tolnode/' + input.value;
+			url.pathname = '/data/node';
+			url.search = '?name=' + encodeURIComponent(input.value);
 			fetch(url.toString())
 				.then(response => {
 					// Search successful. Get nodes in parent-chain, add to tolMap, then emit event.
-					url.search = '?type=chain';
+					url.pathname = '/data/chain';
 					fetch(url.toString())
 						.then(response => response.json())
 						.then(obj => {
-- 
cgit v1.2.3

