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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Sitemap Behavior

Berus
Level 2
Level 2

Hello all,

 

I am on ACS commons v4.3.4 and AEM v6.5.3, using the OOTB ACS Commons Sitemap and Vanity urls. The issue i'm facing is, sitemap is include vanity urls as well, which it should not. Is there any way this can be disabled? 

 

Thanks in advance! 

1 Accepted Solution
Jörg_Hoh
Correct answer by
Employee
Employee

Hi,

 

You can find the code here: https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/main/java/com/ad...

 

It does not seem that there's a chance to prefer the non-vanity URL over the vanity URL if such a vanity URL is configured.

 

Jörg

View solution in original post

3 Replies
Jörg_Hoh
Correct answer by
Employee
Employee

Hi,

 

You can find the code here: https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/main/java/com/ad...

 

It does not seem that there's a chance to prefer the non-vanity URL over the vanity URL if such a vanity URL is configured.

 

Jörg

View solution in original post

Berus
Level 2
Level 2
Thank you for the response. It looks like a custom sitemap has to be developed to support this use case.
Jörg_Hoh
Employee
Employee
Before you start creating a new sitemap implementation, please raise a ticket with ACS AEM Commons and ask if an improvement of the existing implementation makes sense. In that case I would ask you to contribute your functionality to the overall project, so you can avoid a custom implementation of it.