From a7e26055b2fdcf241ca48b6bd0b7d3c1e30c9755 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Mon, 5 May 2025 15:27:13 +0200 Subject: [PATCH] improve appstore url query parsing --- dashboard/src/views/AppstoreView.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dashboard/src/views/AppstoreView.vue b/dashboard/src/views/AppstoreView.vue index 072347bf7..52fae3b5f 100644 --- a/dashboard/src/views/AppstoreView.vue +++ b/dashboard/src/views/AppstoreView.vue @@ -77,7 +77,8 @@ onMounted(async () => { const query = window.location.hash.slice('#/appstore/'.length); if (query) { const appId = query.split('?')[0]; - const version = query.slice(query.indexOf('version=')+'version='.length); + const params = new URLSearchParams(window.location.hash.slice(window.location.hash.indexOf('?'))); + const version = params.get('version') || 'latest'; const app = await getApp(appId, version); if (app) {