Skip to content

Commit 8303dc2

Browse files
committed
Fix URL construction in useMenu to use window.location.origin
1 parent 25b98e8 commit 8303dc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/composables/useMenu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ function useMenu(identityStateStore) {
206206
for (const menu of menus.value) {
207207
if (menu.path && menu.badge) {
208208
const label = normalizeLabel(menu.label)
209-
const params = new URL(window.location.host + menu.path).searchParams
209+
const params = new URL(window.location.origin + menu.path).searchParams
210210
const queryString = qs.parse(params.toString())
211211

212212
filters[label] = queryString['filters']

0 commit comments

Comments
 (0)