Skip to content

Commit dbbfe91

Browse files
committed
fix(web): correctly parse search in bootstrap
1 parent 6881638 commit dbbfe91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stores/router.store.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineStore, storeToRefs } from 'pinia';
22
import { ref } from 'vue';
33

44
const parseQuery = (location: Location) => {
5-
const params = new URLSearchParams(location.href.split('?').at(1));
5+
const params = new URLSearchParams(location.href.split('?').at(1)?.replace(/#.*$/, ''));
66
return Object.fromEntries(params.entries());
77
};
88

0 commit comments

Comments
 (0)