Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Using LinkTransformer - How is it triggered?

snbaem
Community Advisor
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
MC_Stuff
Correct answer by
Level 9
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
Ratna_Kumar
Community Advisor
Community Advisor

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.

snbaem
Community Advisor
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

MC_Stuff
Correct answer by
Level 9
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