Skip to content

Commit e51addf

Browse files
committed
Merge pull request #108 from kazupon/improve/redirect
Improve api/redirect document
2 parents 24afec9 + 3da4d2a commit e51addf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/api/alias.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ router.alias({
1818
// match /a as if it is /a/b/c
1919
'/a': '/a/b/c',
2020

21-
// alias can contian dynamic segments
21+
// alias can contain dynamic segments
2222
// the dynamic segment names must match
2323
'/user/:userId': '/user/profile/:userId'
2424
})

docs/api/redirect.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `router.redirect(redirectMap)`
22

3-
Configures global redirection rules for the router. Global redirections are performed before matching the current path. If a redirection is found, the originally visited path will simply be skipped and will not leave a record in the history.
3+
Configures global redirection rules for the router. Global redirections are performed before matching the current path. If a redirection is found, the originally visited path will simply be skipped and will not leave a record in the browser history.
44

55
### Arguments
66

@@ -16,7 +16,7 @@ router.rediect({
1616
// redirect any navigation to /a to /b
1717
'/a': '/b',
1818

19-
// redirect can contian dynamic segments
19+
// redirect can contain dynamic segments
2020
// the dynamic segment names must match
2121
'/user/:userId': '/profile/:userId'
2222
})

0 commit comments

Comments
 (0)