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
Project Config bug? #7208
Comments
Not able to reproduce this, and not sure how it could happen. Sites’ configs are rebuild from Lines 264 to 277 in 1d69bfb
Craft never stores the parsed base URL there – that only happens from Lines 128 to 135 in 1d69bfb
Maybe something in a module/plugin is overwriting the |
Weirdly, this trick doesn't seem to be working for me either... Can you reproduce that one? If not, i can nuke my whole vendor folder and try again. |
For what it's worth, I've noticed something similar with a project updating from Craft 2 to 3. When doing the upgrade on the DB, we throw out the upgraded project config values (in favor of the ones we've been working on for Craft 3), but Craft seem to really want us to use the URL string rather than an environment variable. Next time we run the process I'll see if I can narrow down the issue to anything more specific. |
@lindseydiloreto |
Ah, my bad! I was doing it wrong, setting it as an array syntax ( |
Ok, I have:
And I still get the same issue when I click the "Rebuild the Config" button... |
And even now, after saving the site from the CP with |
If I save the field normally (as if I were editing it), the PC value is set to If I rebuild it (via "Rebuild the Config"), the PC value changes to |
Alright, well I’m a bit stumped. If you can send in your Composer files, a database backup, and any custom module files, etc., we can try to reproduce it locally using those. support@craftcms.com |
You got it, thanks! I'll send that stuff over. 👍 |
We ended up tracking this down to the |
Ok sweet, thanks @brandonkelly! 🍺 |
Worth mentioning here that I’ve just deprecated the |
Craft 3.5.17 is out now with this fix. |
Brilliant, thanks dude! 👍 |
Description
If you set the Base URL of a site to an alias, it will properly set that alias in the Project Config files.
But when you "Rebuild the Config", it will actually change it to the value of the alias.
Steps to reproduce
baseUrl
default--***.yaml
Additional info
The text was updated successfully, but these errors were encountered: