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

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

  • December 19, 2022
  • 3 replies
  • 2942 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

aanchal-sikka
aanchal-sikkaAccepted solution
New Participant
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
New Participant
December 20, 2022

Thanks!

sravs
New Participant
December 20, 2022
New Participant
December 20, 2022

Thanks for this

Avinash_Gupta_
New Participant
December 20, 2022

Hi @fionas76543059 

 

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

New Participant
December 20, 2022

Thanks for your reply