Open Tofandel opened 4 months ago
Very likely due to $this->addToRouteRegistry($slug, $customRoutePrefix);
which is a side effect in the route registration
My biggest problem is the fact that the twill users management is registered as the users
module which is very easy to conflict with user
being a very common model name, maybe we should have the default user route under a prefix to avoid those issues (but would have to be v4 likely or maybe in v3 it could be enabled with an option)
Given the following twill route
And the following navigation
Until I run
php artisan route:cache
the link in the menu is correct After the cache, the link goes to/users
without the group prefixSetting
->forModule('app.users')
(the route being listed astwill.app.users.index
results inWhich is not a descriptive error message
Setting
->forRoute('twill.app.users.index')
gives the desired result but it's weird to have the behavior differ between route cached or not (routes are only cached when staging so it's not caught straight away)