We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Trying to create a reverse route URL from a web route to an admin route is impossible and throws a Configuration Exception ( named route not found ).
Created a route to an admin page inside a web route creates an URL to that route.
admin.foo
add_menu_page
foo
return App::routeUrl('admin.foo')
See the error message.
It's clear why this happens. The admin routes are never loaded for a web request and web routes are not loaded for admin requests.
This makes sense from a performance point but I don't know whether losing the described functionality was intended or just an unknown side effect.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
Expected behaviour
Trying to create a reverse route URL from a web route to an admin route is impossible and throws a Configuration Exception ( named route not found ).
Actual behaviour
Created a route to an admin page inside a web route creates an URL to that route.
Steps to reproduce (in case of a bug)
admin.foo
add_menu_page
with the slug offoo
See the error message.
Comments
It's clear why this happens. The admin routes are never loaded for a web request and web routes are not loaded for admin requests.
This makes sense from a performance point but I don't know whether losing the described functionality was intended or just an unknown side effect.
The text was updated successfully, but these errors were encountered: