-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
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
[4.8.0]: It appears subfolder CP URLs have broke, causing 404 #14559
Comments
This is most likely happening because you are manually setting the
(That’s what will happen by default if you don’t set it manually.) |
This is how I've added the aliases prior to v4.8 without any issues:
With I have tried adding a trailing slash on the folder, same result. Did I miss something? Thank you. |
What is the exact URL of your |
The URL of CP access is EDIT: Also, to reiterate, this config worked fine before either 4.8.0 or 4.8.1, and downgrading to 4.7.1 makes the sub-folder staged site functional again for CP access. |
So I understand it was working prior to 4.8.1 for you, but it is still a misconfiguration issue. The change is 4.8.1 is non-breaking if |
Hmm, but then a standard, non-subfolder, site isn't supposed to include EDIT From my original issue, CP tries to access: The site should be live at https://staged.example.com/folder/ NOT https://staged.example.com/folder/web/ What exactly should We stage all our client sites in a subfolder, and they're all non-functional with the 4.8.1 update (they worked fine previously). |
Just tested that setup locally and was able to reproduce, and got it fixed for the next release. I’ll get that out ASAP, but you can get the fix immediately by changing your Sorry for the hassle! |
Thanks, Brandon! Much appreciated. |
Thanks for bearing with me! 4.8.2 (and 5.0.0-beta.7) are out now with that fix. |
Updated and working beautifully! Thanks for making this a priority. |
What happened?
Description
Subfolder projects no longer allow login after upgrading to both 4.8.0 and 4.8.1 in the Utilities menu.
Subfolder name gets doubled on the POST request to:
/folder/folder/index.php
This then produces a 404, and the login returns "undefined" on any login attempt.
Steps to reproduce
Expected behavior
Successful login.
Actual behavior
404 to any login/forgot password path, such as: index.php?p=admin%2Factions%2Fusers%2Flogin&v=1709929415918
Craft CMS version
4.8.0
PHP version
8.1
Operating system and version
Debian 12
Database type and version
MySql
Image driver and version
No response
Installed plugins and versions
No plugins. Staged subfolder site.
The text was updated successfully, but these errors were encountered: