Skip to main content
Level 6
November 23, 2023
Solved

short url

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Preetpal_Bindra
Preetpal_BindraAccepted solution
Community Advisor
November 23, 2023

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#reverse-outgoing-mapping

 

WKND code:

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

 

Thanks,

Preetpal

3 replies

Preetpal_Bindra
Community Advisor
Preetpal_BindraCommunity AdvisorAccepted solution
Community Advisor
November 23, 2023

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#reverse-outgoing-mapping

 

WKND code:

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

 

Thanks,

Preetpal

Translate
DPrakashRaj
Community Advisor
Community Advisor
November 23, 2023

Please take a look at below documentation 

and follow the process that best suits your requirements 

Translate
kautuk_sahni
Level 9
November 23, 2023

@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.

Translate
Kautuk Sahni