Thursday, July 17, 2014

How to change the default page after sign out from AEM Publish instance

Whenever we signout from AEM publish instance ,it will redirect us to the default page i.e geomatrixx
 localhost:4503/content/geometrixx/en/products.html


So to override this we need to map the own URL to the confugiration which override the default one.

Goto 
    /libs
       /cq
         /core
           /config.author
copy the node com.day.cq.commons.servlets.RootMappingServlet into apps as the sequence provided above

ex: /apps
       /cq
         /core
           /config.author
               com.day.cq.commons.servlets.RootMappingServlet

change the property rootmapping.target to the desired page you want to redirect after logging out from publish instance.

4 comments:

  1. Nice article. Can we create the "com.day.cq.commons.servlets.RootMappingServlet" for each site? For example we have multiple site and everytime a user logs out they should be redirected to the home page of that site.

    ReplyDelete
    Replies
    1. Yes you can .For that you need to create that node for each application in apps folder .for ex. apps/a/ apps/b

      Delete