Skip to content

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

Open
nomelodic wants to merge 1 commit into
skeeks-semenov:masterfrom
nomelodic:master
Open

Fixed building path to files for Yii version >=2.0.39 with non-empty BaseUrl#61
nomelodic wants to merge 1 commit into
skeeks-semenov:masterfrom
nomelodic:master

Conversation

@nomelodic

@nomelodic nomelodic commented Jan 15, 2021

Copy link
Copy Markdown

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