Verify the vanity URL

Enter the name of the vanity URL in the Test text box of the Configuration Test section and click Resolve.

The result of the test appears in the next line.

If you defined the URL correctly, the path value in the result displays the resolved URL.

path=/content/geometrixx-outdoors/en/men/shirts/bambara.html

You can also use the Sling Resource Resolver to verify issues that you face when creating vanity URLs.

For example, if the vanity URL does not exist:

NonExistingResource, path=/newdealoftheday

Also, you defined a vanity URL but when you test the URL on the browser, another page shows up.

Again, you can use the Sling Resource Resolver to verify the resolved URL for a vanity URL. For example, you defined the same vanity URL (dealoftheday) for two pages on your website.

This issue occurs since you define vanity URLs by page. So it's necessary to go to a specific page to define a vanity URL for that page. In this case, you inadvertently set the same vanity URL for two pages.

To get around this issue, you can either go to the Sling Resource Resolver and go through the list of Resolver Map Entries. This list contains defiend vanity URLs.

Alternatively, you can use the URL Mapping feature of CQ to replicate this functionality.

URL mapping

To create a URL map between a /content URL in your repository and a shortened URL:

Go to the Configuration tab of the Adobe CQ5 Web Console (http://localhost:4503/system/console/configMgr).