Expand my Community achievements bar.

SOLVED

Using LinkTransformer - How is it triggered?

Avatar

Community Advisor

Hello All,

I am looking at an Adobe forum post where the link rewrite is happening. How is the LinkTransformer class triggered? For example if I am testing this in local, and put a debug inside the class does a page refresh get to this class?

Thanks..

1 Accepted Solution

Avatar

Correct answer by
Level 9

Hi,

If you are testing in local without dispatcher or any caching. Then on every refresh it will be called.   To get more details enable debug on org.apache.sling.rewriter

Coming to Trigger at high level there will be servlet filter which calls it.  To find out which processor is picked Or if custom one is called verify at http://host:port/system/console/requests by selecting your page.

Thanks,

View solution in original post

3 Replies

Avatar

Level 10

Hi,

We have an community article which talks about Link rewritter in AEM.
Creating a Link Rewriter for Adobe Experience Manager

//https://helpx.adobe.com/experience-manager/using/creating-link-rewrite.html

Hope this helps!

~ Ratna.

Avatar

Community Advisor

Hi Ratna,

Thanks for the link, I had gone through the link, but couldn't find how the binding is happening (In case there is can you please point that?) to the factory classes. (I was using this reference post). Later I found Apache Sling doc, that we need to configure the processors as child node of /apps/APPNAME/config/rewriter

Avatar

Correct answer by
Level 9

Hi,

If you are testing in local without dispatcher or any caching. Then on every refresh it will be called.   To get more details enable debug on org.apache.sling.rewriter

Coming to Trigger at high level there will be servlet filter which calls it.  To find out which processor is picked Or if custom one is called verify at http://host:port/system/console/requests by selecting your page.

Thanks,