Skip to content

Commit 34ddbfe

Browse files
committed
fix: opt out during internal resolution
1 parent f0cc2e3 commit 34ddbfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/routing/routing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function resolve(common: CommonComposableOptions, route: RouteLocationPathRaw, l
187187
}
188188

189189
if (common.runtimeConfig.public.i18n.strategy !== 'prefix') {
190-
return common.router.resolve(route)
190+
return common.router.resolve(route, undefined, { locale: false })
191191
}
192192

193193
const restPath = route.path.slice(1)
@@ -198,5 +198,5 @@ function resolve(common: CommonComposableOptions, route: RouteLocationPathRaw, l
198198
return route
199199
}
200200

201-
return common.router.resolve(assign({}, route, _route, { path: targetPath }))
201+
return common.router.resolve(assign({}, route, _route, { path: targetPath }), undefined, { locale: false })
202202
}

0 commit comments

Comments
 (0)