We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fullPath
1 parent 32cacb3 commit f6ed49fCopy full SHA for f6ed49f
packages/client/src/router/createVueRouter.ts
@@ -40,9 +40,10 @@ export const createVueRouter = (): Router => {
40
// and save page data to route meta
41
router.beforeResolve(async (to, from): Promise<string | void> => {
42
if (to.path !== from.path || from === START_LOCATION) {
43
- const route = resolveRoute(to.fullPath)
+ const fullPath = to.fullPath.split('#')[0]
44
+ const route = resolveRoute(fullPath)
45
- if (route.path !== to.fullPath) {
46
+ if (route.path !== fullPath) {
47
return route.path
48
}
49
const pageChunk = await route.loader()
0 commit comments