Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Redirect Tool using etc/map

Avatar

Avatar
Validate 1
Level 1
s1101v
Level 1

Likes

0 likes

Total Posts

26 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back
View profile

Avatar
Validate 1
Level 1
s1101v
Level 1

Likes

0 likes

Total Posts

26 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back
View profile
s1101v
Level 1

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 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
MVP
raj_mandalapu
MVP

Likes

124 likes

Total Posts

203 posts

Correct Reply

72 solutions
Top badges earned
Validate 1
Contributor
Shape 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
MVP
raj_mandalapu
MVP

Likes

124 likes

Total Posts

203 posts

Correct Reply

72 solutions
Top badges earned
Validate 1
Contributor
Shape 1
Give Back 5
Give Back 3
View profile
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.

Answers (2)

Answers (2)

Avatar

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

591 likes

Total Posts

572 posts

Correct Reply

219 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

591 likes

Total Posts

572 posts

Correct Reply

219 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
MVP

09-01-2021

@s1101v,

Building your own custom one, I suggest you reverse engineer the ACS Redirect Manager, understand why did they decide to design this redirect manage. Then execute your own. (you should also try to set it up on your local publisher + dispatcher, see how it works).

I think their ACS Redirect Manager makes sense to me, as rules are coming from static files within the web server, the redirect rules take effect before reaching to the AEM publishers... you wouldn't want your publishers to be taking the load.

I hope this helps.

Avatar

Avatar
Boost 5
Level 4
praveenjain
Level 4

Likes

37 likes

Total Posts

36 posts

Correct Reply

10 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile

Avatar
Boost 5
Level 4
praveenjain
Level 4

Likes

37 likes

Total Posts

36 posts

Correct Reply

10 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile
praveenjain
Level 4

09-01-2021

Agreed on point mentioned by BrianKasingli.

Just wanted to understand how your custom requirment are different from ACS Redirect Manager.

If its just about the UI then you can override it and appyling styling, functionality remains same.

- Praveen