내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Client Libraries Issue CQ 5.6.1

Avatar

Level 2

Hi I hope somebody can shed light on an issue i am having in CQ 5.6.1.

I have an issue referencing images in the DAM from client libraries stored in components. The URL path is incorrectly altered when the client library is generated.

The URLS are of the format.

url("/content/dam/company/emea/sprites/homepage-banner-sprite.png")
but it is changed to url("../../../content/dam/company/emea/sprites/homepage-banner-sprite.png")

In version 5.4 is did not alter URLS that where relative but started from the root.

I can think of a number of work arounds, but is there a proper way to address this issue?

 

Thanks.

D

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 10

Hi D,

In CQ5.4 urls in embedded css files are rewritten relative to the clientlib folder's location. In CQ5.5 onwards this mechanism has been changed and relative paths specified in embedded css files are resolved against the individual css file's location.
Unfortunately there is no option to revert to previous version however you need to use relative paths some thing like "../../sprites/homepage-banner-sprite.png"

Thanks,

Sham

원본 게시물의 솔루션 보기

1 답변 개

Avatar

정확한 답변 작성자:
Level 10

Hi D,

In CQ5.4 urls in embedded css files are rewritten relative to the clientlib folder's location. In CQ5.5 onwards this mechanism has been changed and relative paths specified in embedded css files are resolved against the individual css file's location.
Unfortunately there is no option to revert to previous version however you need to use relative paths some thing like "../../sprites/homepage-banner-sprite.png"

Thanks,

Sham