Skip to main content
Shubham_borole
Community Advisor
Community Advisor
Apr 13, 2017 7:26 PM UTC
Solved

Using LinkTransformer - How is it triggered?

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
MC_Stuff
MC_StuffAccepted solution
Level 10
Apr 15, 2017 11:50 PM UTC

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,

3 replies

Ratna_Kumar
Level 10
Apr 13, 2017 8:19 PM UTC

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.

Translate
Shubham_borole
Community Advisor
Community Advisor
Apr 14, 2017 12:45 PM UTC

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

Translate
MC_Stuff
MC_StuffAccepted solution
Level 10
Apr 15, 2017 11:50 PM UTC

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,

Translate