Skip to content
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

Fixed building path to files for Yii version >=2.0.39 with non-empty BaseUrl #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nomelodic
Copy link

@nomelodic nomelodic commented Jan 15, 2021

The issue was discussed here yiisoft/yii2#18414.

In version 2.0.39, there was a problem with projects with non-empty BaseUrl and appendTimestamp included. In this case, when the list of files (.css and .js) was compiled, the path to the file was built incorrectly when the file modification time was received. BaseUrl was contained in both @webroot mask and relative file path. Those, it turned out something like this G: /XAMPP7/htdocs/subdomain/site/web/subdomain/site/css/custom.css instead of the prescribed G: /XAMPP7/htdocs/subdomain/site/web/css/custom.css. There it was fixed by removing BaseUrl in the relative path.

Here I found a similar problem: no compiled files were generated on projects with non-empty BaseUrl. The script that bypassed the .css and .js lists could not get any of the files, since paths contained doubled BaseUrl.

Fix #54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

don't update css file
1 participant