Using LinkTransformer - How is it triggered? | Community
Skip to main content
Shubham_borole
New Participant
April 13, 2017
Solved

Using LinkTransformer - How is it triggered?

  • April 13, 2017
  • 3 replies
  • 1623 views

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.
Best answer by MC_Stuff

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

MC_Stuff
MC_StuffAccepted solution
New Participant
April 15, 2017

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,

Shubham_borole
New Participant
April 14, 2017

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

Ratna_Kumar
New Participant
April 13, 2017

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.