diff --git a/docs/en/reference/runtime-api.md b/docs/en/reference/runtime-api.md index a202b270..b69808ee 100644 --- a/docs/en/reference/runtime-api.md +++ b/docs/en/reference/runtime-api.md @@ -140,7 +140,7 @@ For custom themes, the same router is available from [`enhanceApp`](../guide/cus - **Type**: `(path: string) => string` -Appends the configured [`base`](./site-config#base) to a given URL path. Also see [Base URL](../guide/asset-handling#base-url). +Prepends the configured [`base`](./site-config#base) to a given URL path. Also see [Base URL](../guide/asset-handling#base-url). ## `` diff --git a/src/client/app/utils.ts b/src/client/app/utils.ts index d63c5ee3..89e778ab 100644 --- a/src/client/app/utils.ts +++ b/src/client/app/utils.ts @@ -18,7 +18,7 @@ export function joinPath(base: string, path: string) { } /** - * Append base to internal (non-relative) urls + * Prepend base to internal (non-relative) urls */ export function withBase(path: string) { return EXTERNAL_URL_RE.test(path) || !path.startsWith('/')