May 15, 2020
Estimated Post Reading Time ~

Root Mapping Configuration in Adobe CQ5

In Adobe AEM, As we see that if we hit http://<host>:<port>/ by default it is redirected to
Author: /project.html
Publish: /content.html

Did you think about that How it works?
In this post, I will explain how it works and how we can change these URLs.
If you go to http://<host>:<port>/system/console/configMgr and search for the Day CQ Root Mapping, you would be seen like these screen:

RootMappingAuthor:

RootMappingPublish:

In author instance, it is straight forward but if you see publish instance, though it's configured as ‘/content.html’ but its redirected to /content/geometrixx/en. This reason is being the 2 properties that are set for the node ‘/content’.
sling:resourceType as sling:redirect and
sling:target as /geohome

/geohome is set as the vanityPath for the geometixx-outdoors site,which is turn has a redirectTarget set to /content/geometrixx/en.

How to Change?

Most likely, we would want to change the root mapping from /geohome to our own application in the publish instance and the same can be done by 2 types which are mention below:
1. /Content :

We know, in publish instance root mapping is set to /content.html. So go to the content node and change the URL for the property sling:target to your own application content node and save.

2. ConfigMgr :

Login to the config manager console directly either in the author or publish which you want to change, search for the Day CQ Root Mapping and change the ‘Target Path‘ to the page which you want to show and click on save. Next time when you access the instance, it should redirect to the configured path.



By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.