File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/client/src/router Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,13 @@ export const resolveRoute = <T extends RouteMeta = RouteMeta>(
16
16
path : string ,
17
17
currentPath ?: string ,
18
18
) : ResolvedRoute < T > => {
19
- // get only the pathname from the path
20
19
const { pathname, hashAndQueries } = splitPath ( path )
21
20
22
- // resolve the route path
21
+ // calculate the route key and full path
23
22
const routeKey = resolveRouteKey ( pathname , currentPath )
24
- const routeFullPath = __VUEPRESS_CLEAN_URL__
25
- ? routeKey
26
- : resolveRoutePathWithExt ( routeKey ) + hashAndQueries
23
+ const routeFullPath =
24
+ ( __VUEPRESS_CLEAN_URL__ ? routeKey : resolveRoutePathWithExt ( routeKey ) ) +
25
+ hashAndQueries
27
26
28
27
// the route not found
29
28
if ( ! routes . value [ routeKey ] ) {
You can’t perform that action at this time.
0 commit comments