Skip to content

v1.4.1 — component media-link namespaced-source fix

Choose a tag to compare

@bcordis bcordis released this 04 Jun 17:58
· 5 commits to main since this release

Fixed

Component media now links from media/<name> when assets are namespaced. The dev linker always sourced a component's media from <root>/media, which only fits the <media folder="media"> layout (Proclaim). For the <media folder="media/com_x"> layout (e.g. com_cwmconnect, com_livingword), cwm-link pointed the install's media/<name> symlink one level too high — CSS/JS 404'd and cwm-verify flagged the correct symlink as a conflict. The resolver now prefers media/<name> when that subdir exists, else falls back to media/. Targets unchanged; only the source path is corrected.

Consumers on the namespaced layout should composer update cwm/build-tools to pick this up (within ^1.4).

Full PR: #27