How to enable ACS AEM Commons Redirect Manager on AEM aa CS | Community
Skip to main content
October 23, 2024
Solved

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

  • October 23, 2024
  • 2 replies
  • 1603 views

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.

 

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

 

 

 

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 arunpatidar

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

2 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
October 23, 2024

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
daniel-strmecki
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
October 23, 2024

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