I’m still a beginner who’s still following the 20min CMS tutorial. CakePHP 4.x
Issue: Not-logged-in users should be redirected to sub.domain.tld/cakefolder/users/login but instead get redirected to sub.domain.tld/users/login.
Edit: The project was created in said cakefolder/, it’s the root folder with the webroot and everything else beside it. This is why this issue is not quite understandable to me.
I guess this is due to the lines
$authenticationService = new AuthenticationService([
‘unauthenticatedRedirect’ => ‘/users/login’,
‘queryParam’ => ‘redirect’,
I could change the path in the array but I guess that wouldn’t be the right way, as there’s another of those somewhere else…
So how/where to correct that?