You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~ Licensed under the Apache License, Version 2.0 (the "License");
)
What is the difference between getURL() and getMappedURL()? I am asking because getURL() barely makes sense, as it exposes URLs which are never exposed by AEM itself, because the LinkRewriter will always apply rules, for example path shortening.
That means if a mapping /content/foo/:/content/ AEM will never deliver a link to localhost:8080/content/foo/page.html but consistently localhost:8080/content/page.html (even if the LinkImpl will return this value).
Do you see any reason for this?
The text was updated successfully, but these errors were encountered:
A question on the Link API (
aem-core-wcm-components/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/commons/link/Link.java
Line 4 in d2a7b02
What is the difference between
getURL()
andgetMappedURL()
? I am asking becausegetURL()
barely makes sense, as it exposes URLs which are never exposed by AEM itself, because the LinkRewriter will always apply rules, for example path shortening.That means if a mapping
/content/foo/:/content/
AEM will never deliver a link tolocalhost:8080/content/foo/page.html
but consistentlylocalhost:8080/content/page.html
(even if the LinkImpl will return this value).Do you see any reason for this?
The text was updated successfully, but these errors were encountered: