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

SOLVED

Vanity URL is not working when a page url contains selectors

Avatar

Level 1

If i have a page with 

https://localhost:4502/content/myproject/us/en/home/test-page.html

The above page contains a component which will add a selector

https://localhost:4502/content/myproject/us/en/home/test-page.model.html

model- selector

i have added a vanity url for the above page as /aempage 

when i access the endsite url  for the above page as https://localdev.example.com/vanityurl

https://localdev.example.com/aempage -> it redirects to 404 page

 

How do i implement vanity url in the above case

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Shwetha1994  Does http://localhost:4502/aempage works for you?

 

Since the vanity URLs are working in the author/ publish instance, it's not an issue related to selectors. Basically, dispatcher level additional configuration has to be done for new vanity URLs to be picked up. This is explained here: https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/dispatcher-c... and you can also follow the 2nd link that Brian shared to configure vanity URLs in dispatcher

View solution in original post

0 Replies

Avatar

Correct answer by
Community Advisor

@Shwetha1994  Does http://localhost:4502/aempage works for you?

 

Since the vanity URLs are working in the author/ publish instance, it's not an issue related to selectors. Basically, dispatcher level additional configuration has to be done for new vanity URLs to be picked up. This is explained here: https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/dispatcher-c... and you can also follow the 2nd link that Brian shared to configure vanity URLs in dispatcher

Avatar

Level 1
yes this works, http://localhost:4502/aempage redirect to this page only, but the short url will not be changed to long url

Avatar

Community Advisor
@Shwetha1994 - Since the vanity URLs are working in the author/ publish instance, it's not an issue related to selectors. Basically, dispatcher level additional configurtions has to be done for new vanity URLs to be picked up. This is explained here: https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/dispatcher-c... and you can also follow the 2nd link that Brian shared to configure vanity URLs in dispatcher