We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9458584 commit 2fa1f5fCopy full SHA for 2fa1f5f
packages/client/src/router/resolveRoute.ts
@@ -16,14 +16,13 @@ export const resolveRoute = <T extends RouteMeta = RouteMeta>(
16
path: string,
17
currentPath?: string,
18
): ResolvedRoute<T> => {
19
- // get only the pathname from the path
20
const { pathname, hashAndQueries } = splitPath(path)
21
22
- // resolve the route path
+ // calculate the route key and full path
23
const routeKey = resolveRouteKey(pathname, currentPath)
24
- const routeFullPath = __VUEPRESS_CLEAN_URL__
25
- ? routeKey
26
- : resolveRoutePathWithExt(routeKey) + hashAndQueries
+ const routeFullPath =
+ (__VUEPRESS_CLEAN_URL__ ? routeKey : resolveRoutePathWithExt(routeKey)) +
+ hashAndQueries
27
28
// the route not found
29
if (!routes.value[routeKey]) {
0 commit comments