Expand my Community achievements bar.

SOLVED

short url

Avatar

Level 8
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello Vani,

Have you tried using sling internal redirect feature of AEM?

 

Please look at the example on this page which explains how incoming short urls into AEM, can be redirected to the corresponding AEM language page.

With this method, you would be able to define the short URL and the corresponding language page URL in a AEM.

 

You could also specify different urls for different AEM environments you might have.

You could also look at the Adobe provider WKND code base as reference of sling internal redirects.

 

https://sling.apache.org/documentation/the-sling-engine/mappings-for-resource-resolution.html#revers...

 

WKND code:

https://github.com/adobe/aem-guides-wknd

 

Thanks,

Preetpal

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hello Vani,

Have you tried using sling internal redirect feature of AEM?

 

Please look at the example on this page which explains how incoming short urls into AEM, can be redirected to the corresponding AEM language page.

With this method, you would be able to define the short URL and the corresponding language page URL in a AEM.

 

You could also specify different urls for different AEM environments you might have.

You could also look at the Adobe provider WKND code base as reference of sling internal redirects.

 

https://sling.apache.org/documentation/the-sling-engine/mappings-for-resource-resolution.html#revers...

 

WKND code:

https://github.com/adobe/aem-guides-wknd

 

Thanks,

Preetpal

Avatar

Administrator

@Vani1012 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni