fix: use named routes for redirects and form submission#883
fix: use named routes for redirects and form submission#883kenjis merged 1 commit intocodeigniter4:developfrom
Conversation
|
@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: