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) {