ACS Commons StaticReferenceRewriteTransformerFactory.cfg.json | Community
Skip to main content
New Participant
September 12, 2023

ACS Commons StaticReferenceRewriteTransformerFactory.cfg.json

  • September 12, 2023
  • 2 replies
  • 823 views

 

I have an issue with matchingPatterns not working. I am trying to rewrite pdf links <a href="/content/dam/whatever.pdf"> links 
into <a href="http://satic.dev.mysite.com/content/dam/whatever.pdf">. The config file below doesn't work for matchingPatterns, but everything else works.
I tried a ton of different things and can't seem to get that attribute to do anything. I tried acs commons 5.3.4, 5.7.0, 6.1.0. Any clues?


com.adobe.acs.commons.rewriter.impl.StaticReferenceRewriteTransformerFactory.cfg.json


{
"host.pattern":[
"static.dev.mysite.com"
],
"attributes":[
"img:src",
"link:href",
"script:src"
],
"matchingPatterns":[
"a:href;(\/content\/(.*?)\\.pdf)"
],
"host.scheme":"http",
"prefixes":[
"/etc.clientlibs",
"/etc",
"/libs",
"/content"
],
"pipeline.type":"mysite-static-refs"
}

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

kautuk_sahni
Employee
September 18, 2023

@aanchal-sikka, Can you share your thoughts on this? 

Kautuk Sahni
aanchal-sikka
New Participant
September 13, 2023

Hello @jimmychaucap 

 

Are you using AEM 6.5 or AEM Cloud?

Aanchal Sikka
New Participant
September 14, 2023

I am using AEM Cloud.