From: Eduardo San Martin Morote Date: Fri, 21 Jun 2024 13:58:51 +0000 (+0200) Subject: feat(warn): fix links to docs X-Git-Tag: v4.4.1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cb57971efd767777011e872e9cc327e0a0da79f;p=thirdparty%2Fvuejs%2Frouter.git feat(warn): fix links to docs --- diff --git a/packages/router/src/history/html5.ts b/packages/router/src/history/html5.ts index 9388e8f2..0f7a169a 100644 --- a/packages/router/src/history/html5.ts +++ b/packages/router/src/history/html5.ts @@ -280,7 +280,7 @@ function useHistoryStateNavigation(base: string) { warn( `history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:\n\n` + `history.replaceState(history.state, '', url)\n\n` + - `You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.` + `You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state` ) } diff --git a/packages/router/src/matcher/index.ts b/packages/router/src/matcher/index.ts index 0d67061d..da9e821f 100644 --- a/packages/router/src/matcher/index.ts +++ b/packages/router/src/matcher/index.ts @@ -133,7 +133,7 @@ export function createRouterMatcher( if (__DEV__ && normalizedRecord.path === '*') { throw new Error( 'Catch all routes ("*") must now be defined using a param with a custom regexp.\n' + - 'See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.' + 'See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.' ) } diff --git a/packages/router/src/router.ts b/packages/router/src/router.ts index da33e976..1906ba45 100644 --- a/packages/router/src/router.ts +++ b/packages/router/src/router.ts @@ -390,7 +390,7 @@ export function createRouter(options: RouterOptions): Router { if (__DEV__ && !routerHistory) throw new Error( 'Provide the "history" option when calling "createRouter()":' + - ' https://next.router.vuejs.org/api/#history.' + ' https://router.vuejs.org/api/interfaces/RouterOptions.html#history' ) const beforeGuards = useCallbacks>()