Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Vanity URL Contradicts with Sling mapping rules

Avatar

Level 3

Hi Experts,

I have a 2 requirement :

  1. Hide "content/abc" from the URL.
  2. Allow user to enter vanity URL.

Is there a example I can use to achieve both the requirement at the same time. I am only able to get one at a time.

Any pointer is appreciated!

1 Accepted Solution

Avatar

Correct answer by
Level 10

1)   To hide the path for page request configure url mappings at 

http://<host>:<port>/system/console/configMgr/org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl

2)     To add vanity URL go to page properties otherwise you need to custom build based on your need.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

1)   To hide the path for page request configure url mappings at 

http://<host>:<port>/system/console/configMgr/org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl

2)     To add vanity URL go to page properties otherwise you need to custom build based on your need.