]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
feat(warn): fix links to docs
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 21 Jun 2024 13:58:51 +0000 (15:58 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 21 Jun 2024 13:58:51 +0000 (15:58 +0200)
packages/router/src/history/html5.ts
packages/router/src/matcher/index.ts
packages/router/src/router.ts

index 9388e8f24d28b8e4fbe29ffb04f019bf9b6a4910..0f7a169a5c65d62c3868c009e0592e4c56172539 100644 (file)
@@ -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`
       )
     }
 
index 0d67061d391086d5632edd5c4cb0887b102b3a9e..da9e821f33db75bb15a75ba416548ad19f60c98a 100644 (file)
@@ -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.'
         )
       }
 
index da33e976d70b5192cf2bf82afc988d226bd0cbe3..1906ba452e80a15faa90c73b0731e2be0f6925be 100644 (file)
@@ -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<NavigationGuardWithThis<undefined>>()