AEM 6.2: Url Shortening using sling mapping for multi-language site
Hi All,
I have a use case for url shortening for my multi-language site (Url mapping I am able to solve . Problem is only with shortening in links and hrefs). Would like to hear from you guys if this is achievable or not with Sling mappings.
My page structure and expected shortened url from anchor tags is as follows.
/content/<companyname>/en/abc.html --> www.<companyname>.com/abc
/content/<companyname>/en/xyz/def.html --> www.<companyname>.com/def
/content/<companyname>/es/abc.html -->www.<companyname>.com/es/abc
/content/<companyname>/es/xyz/def.html -->www.<companyname>.com/es/def
Basically for non english pages i want to have the language code prepended before the page name.