AEM - dispatcher filter - what is the difference between "url" and "path" | Community
Skip to main content
Level 6
December 19, 2022
Solved

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

  • December 19, 2022
  • 3 replies
  • 2953 views
{ /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.
Best answer by aanchal-sikka

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.

3 replies

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

Hi @fionas76543059 

 

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

Level 6
December 20, 2022

Thanks for your reply

sravs
Community Advisor
Community Advisor
December 20, 2022
Level 6
December 20, 2022

Thanks for this

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.

Aanchal Sikka
Level 6
December 20, 2022

Thanks!