-
Notifications
You must be signed in to change notification settings - Fork 133
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
fix: use named routes for redirects and form submission #883
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@datamweb What is the docs? |
I was also wondering why @datamweb added the docs label 🤷♂️ |
Guys, But I have a question, why do I face page 404 after using the following address? $routes->group('{locale}', static function($routes) {
service('auth')->routes($routes);
}); localhost::8080/ja/login (is ok) localhost::8080/login (404) Outside of this I feel it needs more investigation, about how to use filters and more. In any case, |
@datamweb, this is not a new feature. It is just a fix to make Shield routes less fragile by using named routes all through the codebase. Please read the issue #879 if you haven't read it already.
What you are saying here (I think) is related to how you set up your locale to be detected. From the docs:
If you have set the locale using routes, then the system should be expecting Please try running the |
@datamweb $routes->group('{locale}', static function($routes) {
service('auth')->routes($routes);
});
|
@sammyskills and @kenjis thank you! |
Description
Fixes #879
Checklist: