Skip to content

Commit

Permalink
feat(warn): fix links to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jun 21, 2024
1 parent de83c36 commit 0cb5797
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/router/src/history/html5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
)
}

Expand Down
2 changes: 1 addition & 1 deletion packages/router/src/matcher/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
)
}

Expand Down
2 changes: 1 addition & 1 deletion packages/router/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>>()
Expand Down

0 comments on commit 0cb5797

Please sign in to comment.