Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Static Reference Rewriter- changes related to MSM

Avatar

Level 2

Hi,

We have a custom staticreference rewrite transformer component written. Also, the mapping has been made in projectName.xml under/config/rewriter. The functionality was working fine with en_US site redirecting images etc to the static domain. Now that multi lingual sites have been created, the functionality has to be extended to all the sites. As specified, I created new config nodes under config.prod as 

com.projectName.wcm.rewriter.impl.StaticReferenceRewriteTransformerFactory-US
com.projectName.wcm.rewriter.impl.StaticReferenceRewriteTransformerFactory-FR

and so on..

In this case the rewritetransformer gets invoked, but not rightly. It always ends up taking the config of the last node in the order and replaces the url with the static domain specification of that node.eg :  Irrespective of whether it is US or UK or FR url, the static domain that is redirected would be static.siteName.FR

Is anything else to be added here to make it work for Multi sites? Request your help here. Thanks !

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi,

while you are awaiting a reply and if you feel like contributing, you can always download the source code for ACS Commons code and try and debug it yourself. Then you can contribute a patch for the fix :)

Regards,

Opkar

View solution in original post

3 Replies

Avatar

Level 2

Hi, yes, I had posted 5days back on the same forum. I haven't got it addressed yet. Thanks.

Avatar

Correct answer by
Employee

Hi,

while you are awaiting a reply and if you feel like contributing, you can always download the source code for ACS Commons code and try and debug it yourself. Then you can contribute a patch for the fix :)

Regards,

Opkar