Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

CustomFilter is overriding OOTB RewriteFilter

Avatar

Level 3

Hi All,

We have a Custom Filter code, which crawls the Page response and replaces a text. 

This is working fine, but this code is overriding RewriteFilter class. Because of that, long-short url conversion is not happening.

If we give a higher Ranking to the Custom Filter, everything works fine. But we need to find a solution to this issue other than providing Ranking. Any pointers to this will help lot.

 

Thanks,

Parvathy

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

If you just want to replace the content, you can use sling output rewriter

https://sling.apache.org/documentation/bundles/output-rewriting-pipelines-org-apache-sling-rewriter....



Arun Patidar

View solution in original post

2 Replies

Avatar

Community Advisor

Is it possible to share ur code?

Avatar

Correct answer by
Community Advisor

If you just want to replace the content, you can use sling output rewriter

https://sling.apache.org/documentation/bundles/output-rewriting-pipelines-org-apache-sling-rewriter....



Arun Patidar