We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6881638 commit dbbfe91Copy full SHA for dbbfe91
src/stores/router.store.ts
@@ -2,7 +2,7 @@ import { defineStore, storeToRefs } from 'pinia';
2
import { ref } from 'vue';
3
4
const parseQuery = (location: Location) => {
5
- const params = new URLSearchParams(location.href.split('?').at(1));
+ const params = new URLSearchParams(location.href.split('?').at(1)?.replace(/#.*$/, ''));
6
return Object.fromEntries(params.entries());
7
};
8
0 commit comments