Sunday, November 5, 2017

Url mapping in AEM

Step1: We need to change the resource resolver configuration and add a new parameter in the url mapping. /content/ProjectName/en/-/. It will shorten the url in application by removing /content/Projectname/en.

Step2: To redirect request path to target path I have added sling:mapping in etc/map/http
Created a node with internal_redirect of jcr:primaryType:sling:mapping
Add the properties
sling:redirect/requestpath
sling:match [^/]+/targetPath

Step3: I have created a vanitypath property in /content/requestpagepath/jcr:content.
sling:vanityPath: /vanityname

testing

Sidekick Workflow tab Issue / Workflow tab is coming blank

widgets.js:163768 Uncaught TypeError: Cannot read property 'wcm' of undefined . 
The problem occurs when we are upgrading from 5.6, 6.0 to uppper version of aem or install service pack. i have resolved this issue by overlaying the sidekick.js and then inside there is method loadWorflowtab.
In that please change the line 
var pageInfo=CQ.WCM.getPageInfo(this.getPath(), true).
It will resolve the problem