Skip to content

[WIP] 1.2 - AssetMaker respect app.asset_url - #552

Merged
LukeTowers merged 3 commits into
wip/1.2from
wip/1.2-asset-maker-asset-url
May 12, 2022
Merged

LukeTowers merged 3 commits into
wip/1.2from
wip/1.2-asset-maker-asset-url

Conversation

@jaxwilko

Copy link
Copy Markdown
Member

Simple fix that updates the AssetMaker trait to respect the app.asset_url config value.

@jaxwilko
jaxwilko changed the base branch from develop to wip/1.2 May 12, 2022 00:51
Comment thread modules/system/traits/AssetMaker.php Resolved
@LukeTowers LukeTowers added maintenance PRs that fix bugs, are translation changes or make only minor changes Status: Revision Needed labels May 12, 2022
@LukeTowers LukeTowers added this to the v1.2.0 milestone May 12, 2022
@LukeTowers
LukeTowers merged commit 907393a into wip/1.2 May 12, 2022
@LukeTowers
LukeTowers deleted the wip/1.2-asset-maker-asset-url branch May 12, 2022 18:52
bennothommo added a commit that referenced this pull request May 25, 2022
#552 introduced a change where all backend assets are converted to URLs to provide support for the `app.asset_url` configuration variable. This change allows asset decompilation to still work by converting a (local) URL back to a relative path. If a URL doesn't match the root URL, then it is passed through as is with no decompilation taking place.

Fixes #562.
bennothommo added a commit to wintercms/wn-backend-module that referenced this pull request May 26, 2022
wintercms/winter#552 introduced a change where all backend assets are converted to URLs to provide support for the `app.asset_url` configuration variable. This change allows asset decompilation to still work by converting a (local) URL back to a relative path. If a URL doesn't match the root URL, then it is passed through as is with no decompilation taking place.

Fixes wintercms/winter#562.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance PRs that fix bugs, are translation changes or make only minor changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants