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

Vanity URL is not working when a page url contains selectors

Avatar

Avatar
Validate 1
Level 1
Shwetha1994
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Shwetha1994
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Shwetha1994
Level 1

27-11-2020

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

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 100
MVP
shelly-goel
MVP

Likes

243 likes

Total Posts

409 posts

Correct Reply

104 solutions
Top badges earned
Affirm 100
Give Back 25
Ignite 3
Give Back 10
Validate 1
View profile

Avatar
Affirm 100
MVP
shelly-goel
MVP

Likes

243 likes

Total Posts

409 posts

Correct Reply

104 solutions
Top badges earned
Affirm 100
Give Back 25
Ignite 3
Give Back 10
Validate 1
View profile
shelly-goel
MVP

28-11-2020

@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

Answers (1)

Answers (1)

Avatar

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
MVP

27-11-2020

@Shwetha1994,

Take a look at these two articles:

  1. https://www.nextrow.com/blog/adobe-experience-manager/a-comprehensive-guide-on-vanity-url-in-aem
  2. https://www.nextrow.com/blog/adobe-experience-manager/vanity-urls-in-aem-part-2

And I don't think the out of the box vanity URL will work with selectors, it only works with the .HTML extension.