Vanity URL: can I get a collection of them all? | Community
Skip to main content
Level 4
October 16, 2015
Solved

Vanity URL: can I get a collection of them all?

  • October 16, 2015
  • 1 reply
  • 498 views

Hello,

I need to get all Vanity URLs in CQ instance.

I can write something like this //element(*)[@sling:vanityPath].

Is there a better way to do it, such as accessing some internal map?

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

Probably there might be some datastructure holding this information already, but it's a private one you cannot access from a different bundle or JSP. So the query is your only option.

Jörg

1 reply

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

Probably there might be some datastructure holding this information already, but it's a private one you cannot access from a different bundle or JSP. So the query is your only option.

Jörg