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.
2 parents 68f1dac + 78638fc commit be8d80eCopy full SHA for be8d80e
docs/common-patterns.md
@@ -550,9 +550,9 @@ The `feathers` middleware will redirect any user in a non public page to the log
550
export default function ({ store, redirect, route }) {
551
const { auth } = store.state
552
if (auth.publicPages.length > 0 && !auth.publicPages.includes(route.name) && !auth.payload) {
553
- return redirect('login')
+ return redirect('/login')
554
} else if (auth.publicPages.length > 0 && auth.publicPages.includes(route.name) && auth.payload) {
555
- return redirect('feed')
+ return redirect('/feed')
556
}
557
558
```
0 commit comments