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:
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.
No comments:
Post a Comment
If you have any doubts or questions, please let us know.