Skip to main content
Level 2
Sep 12, 2023 5:16 PM UTC

ACS Commons StaticReferenceRewriteTransformerFactory.cfg.json

 

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.

3 replies

aanchal-sikka
Community Advisor
Community Advisor
Sep 13, 2023 4:28 AM UTC

Hello @jimmychaucap 

 

Are you using AEM 6.5 or AEM Cloud?

Translate
Aanchal Sikka
Level 2
Sep 14, 2023 4:24 PM UTC

I am using AEM Cloud.

Translate
kautuk_sahni
Level 9
Sep 18, 2023 6:25 AM UTC

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

Translate
Kautuk Sahni