AEM - dispatcher filter - what is the difference between "url" and "path" | Community
Skip to main content
Level 6
Dec 19, 2022 11:16 PM UTC
Solved

AEM - dispatcher filter - what is the difference between "url" and "path"

{ /type "allow" /selectors "*" /extension '(gif|ico|jpeg|jpg|png|svg|pdf|webp)' /path "/content/dam/*" }

 

Hi folks,

In dispatcher filters, "url" and "path" seem to be interchangeable, at least in the examples I can find.  Suppose I put "url" in the filter above, would it work any differently? thanks Fiona

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
aanchal-sikka
aanchal-sikkaAccepted solution
New Participant
Dec 20, 2022 7:04 AM UTC

Matching using /url

/url allows matching agains the entire URL string (except host), making /path, /suffix, /selectors and /extension unecessary, although they are still processed. In order to avoid errors resulting from overlapping matching (eg. /url and `/extension are both matching the extension in the same rule), only /type and /method should be used in combination with /url.

Aanchal Sikka

6 replies

aanchal-sikka
aanchal-sikkaAccepted solution
New Participant
Dec 20, 2022 7:04 AM UTC

Matching using /url

/url allows matching agains the entire URL string (except host), making /path, /suffix, /selectors and /extension unecessary, although they are still processed. In order to avoid errors resulting from overlapping matching (eg. /url and `/extension are both matching the extension in the same rule), only /type and /method should be used in combination with /url.

Translate
Aanchal Sikka
Level 6
Dec 20, 2022 11:50 AM UTC

Thanks!

Translate
sravs
New Participant
Dec 20, 2022 5:44 AM UTC
Level 6
Dec 20, 2022 11:52 AM UTC

Thanks for this

Translate
Avinash_Gupta_
New Participant
Dec 20, 2022 2:41 AM UTC

Hi @fionas76543059 

 

As per my understanding,  "/url" and  "/path" works similarly in the dispatcher filters.

Translate
Level 6
Dec 20, 2022 11:51 AM UTC

Thanks for your reply

Translate