You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Henry Kuijpers (Jira)" <ji...@apache.org> on 2024/08/09 09:34:00 UTC

[jira] [Created] (SLING-12405) Rewriter Filter not called when request is forwarded

Henry Kuijpers created SLING-12405:
--------------------------------------

             Summary: Rewriter Filter not called when request is forwarded
                 Key: SLING-12405
                 URL: https://issues.apache.org/jira/browse/SLING-12405
             Project: Sling
          Issue Type: Bug
    Affects Versions: Rewriter 1.4.4
            Reporter: Henry Kuijpers


See also SLING-1140, where actually in the description is written that "RequestDispatcher#forward" results in the rewriter not being called. The fix there was to add "error" to the filter as well. But it seems that, by using "forward", to a resource that does exist, in fact does not trigger the rewriting pipeline (and thus the same issue occurs).

Some use cases:
 * AEM's link checker / externalizer is not being called, so the resulting page will have long links (including /content), instead of short links
 * ACS AEM Commons versioned clientlibs transformer will not be called, so the MD5 hashes will not be appended to the URL



--
This message was sent by Atlassian Jira
(v8.20.10#820010)