Redirect Tool using etc/map

Avatar

Avatar

s1101v

Avatar

s1101v

s1101v

08-01-2021

Hello Community - I have a requirement to provide the user interface/utility to the authors to manage the redirects which will eventually be stored in etc/map config. I know that we have ACS Redirect Manager but the requirement is to build a custom one. Could someone provide some suggestions?

 

@Arun_Patidar , @Jörg_Hoh , @BrianKasingli , @vanegi 

View Entire Topic

Avatar

Avatar

raj_mandalapu

MVP

Avatar

raj_mandalapu

MVP

raj_mandalapu
MVP

10-01-2021

I can interpret it in two ways,

I think, the ACS Redirect Manager helps us to manage redirects at the Apache level, but I see that
you are expecting to store redirect configurations at etc/map level, seems like you want to configure internal redirects.

If that is the case, then you need to write a custom logic

1. You can reuse ACS redirect manager interface, check the below link for reference page
https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/05e6e86fb69aff6afe7c3e4297b2be1d78...
2. On submit button click, you can call servlet and check whether mapping entries exist under etc/map, if does not exist then create a new one using Node API

If the requirement is not storing under etc/map then you need to do analysis or do simple POC whether ACS redirect manager is meeting all your requirements or not, if not then you need to do reverse engineering.