Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

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

Avatar

Level 4

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.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

Avatar

Correct answer by
Employee Advisor

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