Skip to main content
Level 6
December 19, 2022
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
Community Advisor
December 20, 2022

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

Avinash_Gupta_
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
December 20, 2022

Hi @fionas76543059 

 

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

Translate
Level 6
December 20, 2022

Thanks for your reply

Translate
Level 6
December 20, 2022

Thanks for this

Translate
aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
December 20, 2022

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
December 20, 2022

Thanks!

Translate