Skip to content

Commit

Permalink
Merge da2436d into 32cacb3
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhanbo authored May 19, 2024
2 parents 32cacb3 + da2436d commit 0e2e19c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/client/src/router/createVueRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ export const createVueRouter = (): Router => {
// and save page data to route meta
router.beforeResolve(async (to, from): Promise<string | void> => {
if (to.path !== from.path || from === START_LOCATION) {
const route = resolveRoute(to.fullPath)
const fullPath = to.fullPath.split(/#|\?/)[0]
const route = resolveRoute(fullPath)

if (route.path !== to.fullPath) {
if (route.path !== fullPath) {
return route.path
}
const pageChunk = await route.loader()
Expand Down

0 comments on commit 0e2e19c

Please sign in to comment.