We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e087ea4 commit 52ab5a0Copy full SHA for 52ab5a0
docs/en/api/redirect.md
@@ -18,6 +18,9 @@ router.redirect({
18
19
// redirect can contain dynamic segments
20
// the dynamic segment names must match
21
- '/user/:userId': '/profile/:userId'
+ '/user/:userId': '/profile/:userId',
22
+
23
+ // redirect any not-found route to home
24
+ '*': '/home'
25
})
26
```
docs/zh-cn/api/redirect.md
// 重定向可以包含动态片段
// 而且重定向片段必须匹配
+ // 重定向任意未匹配路径到 /home
0 commit comments