-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Everything to be excluded in redirectOptions except one folder #268
Comments
Indeed currently you can only specified routes to exclude from the redirection process. So you need to specify all the "public" routes in the |
I'm running onto something similar. Isn't there a hacky way to exclude all but include one single page? I have a very complex structure and I only need one |
I think the best way to handle this is to disable the |
@davidparys , a dirty trick is to reverse engineer this regex here to behave like an include:
If you only need the {
exclude: ['(?!*\/dashboard*)*']
} |
I understand that this is has a low priority, but in my opinion this is a valid feature request. Don't you think @larbish? I'd argue that this issue should be re-opened. My approach would be to add an optional |
@jojomatik I agree. Feel free to create a PR, I'll be happy to merge it asap. |
Here you go #336 |
Hello guys,
I am trying to make sure the authentication check if the user is logged in to be applicable to only one folder and every other to be excluded from it. Should I use some regex if it is possible? Or should I write down every route that should be excluded?
The text was updated successfully, but these errors were encountered: