Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question on Link API #2873

Open
joerghoh opened this issue Sep 30, 2024 · 0 comments
Open

Question on Link API #2873

joerghoh opened this issue Sep 30, 2024 · 0 comments

Comments

@joerghoh
Copy link
Contributor

joerghoh commented Sep 30, 2024

A question on the Link API (

~ 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?

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

No branches or pull requests

1 participant