Hi everyone. Faced another issue.
In Authenticate middleware vendor/adminarchitect/core/src/Middleware/Authenticate.php:53 when user tries to access any admin page without permissions, the response()->redirectGuest() method is fired. It saves the url, which user tried to access, to session url.intended param. But this param is never used in adminarchitect. Also it causes user to be redirected to adminarchitect home_page after logging into main app.
I see 2 ways to fix it:
Implement adminarchitect redirector, which will save own url.admin_intended or something like that, not to influence the main app logic.
As first case seem to take a lot of coding and testing, temporary replacing response()->redirectGuest() with simple response()->redirectTo() will fix the issue without breaking anything since adminarchitect does not use intended url to redirect admin user after logging in.
Hi everyone. Faced another issue. In Authenticate middleware
vendor/adminarchitect/core/src/Middleware/Authenticate.php:53
when user tries to access any admin page without permissions, theresponse()->redirectGuest()
method is fired. It saves the url, which user tried to access, to sessionurl.intended
param. But this param is never used in adminarchitect. Also it causes user to be redirected to adminarchitect home_page after logging into main app. I see 2 ways to fix it:url.admin_intended
or something like that, not to influence the main app logic.response()->redirectGuest()
with simpleresponse()->redirectTo()
will fix the issue without breaking anything since adminarchitect does not use intended url to redirect admin user after logging in.