Issue with Middleware Redirect to Login Page - JS script code/file Not Loading
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Issue with Middleware Redirect to Login Page - JS script code/file Not Loading
Hello Aimeos community,
I hope you're all doing well. I am currently facing an issue with a Laravel middleware that redirects users to the login page if they are not authenticated. The redirection works as expected, but I've noticed that the JS script Code/files are not loading on the login.blade.php page.
Here is the relevant code from the middleware:
https://github.com/aimeos/aimeos/blob/1 ... te.php#L18
I hope you're all doing well. I am currently facing an issue with a Laravel middleware that redirects users to the login page if they are not authenticated. The redirection works as expected, but I've noticed that the JS script Code/files are not loading on the login.blade.php page.
Here is the relevant code from the middleware:
Code: Select all
protected function redirectTo($request)
{
if (! $request->expectsJson()) {
return airoute('login');
}
}
Re: Issue with Middleware Redirect to Login Page - JS script code/file Not Loading
What JS code isn't loaded? Is there a 404 in the browser console for the JS file?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star