Expand my Community achievements bar.

SOLVED

How to enable ACS AEM Commons Redirect Manager on AEM aa CS

Avatar

Level 1

Hi everyone, 

 

I'm new to AEM aa CS and picking up a request from users to enable Redirect Manager as part of ACS AEM Commons.

When trying to create new Redirects via ACS AEM Commons tools, there is an error message that says

RedirectFilter is disabled and requires an OSGi configuration to start Please create an OSGi configuration for PID com.adobe.acs.commons.redirects.filter.RedirectFilter.

with a link to this page https://adobe-consulting-services.github.io/acs-aem-commons/features/redirect-manager/index.html .

 

Although compatible with AEM aa CS, looks like the guide is for AEM and references enabling the opt in feature via .xml OSGi file.

 

NeilKe_0-1729692378994.png

To accomplish the same with AEM aa CS, my assumption is to create a json config. file com.adobe.acs.commons.redirects.filter.RedirectFilter.cfg.json under the following nodes, 

\ui.config\src\main\content\jcr_root\apps\<my app>\osgiconfig\config.author

\ui.config\src\main\content\jcr_root\apps\<my app>\osgiconfig\config.publish

 

with the simple content, 

{
"enabled": true
}

 

and then rebuild and deploy. 

 

Does this look right, and if not, what I need to do ?

 

Many Thanks for any help..

 

 

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @NeilKe 
If you need to enable this for both Author and Publish  then just create one config inside config folder

\ui.config\src\main\content\jcr_root\apps\<my app>\osgiconfig\config



Arun Patidar

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @NeilKe 
If you need to enable this for both Author and Publish  then just create one config inside config folder

\ui.config\src\main\content\jcr_root\apps\<my app>\osgiconfig\config



Arun Patidar

Avatar

Level 9

Hi @NeilKe,

I haven't used Redirect Manager from ACS Commons but your logic sounds OK. In case an OSGi component has the "policy = ConfigurationPolicy.REQUIRE" parameter set, then it only gets activated when you configure it on a specific environment.

 

Good luck,

Daniel