short url | Community
Skip to main content
Level 6
November 23, 2023
Solved

short url

  • November 23, 2023
  • 3 replies
  • 6273 views
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Preetpal_Bindra

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

DPrakashRaj
Community Advisor
Community Advisor
November 23, 2023
kautuk_sahni
Community Manager
Community Manager
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.

Kautuk Sahni