Hi all,
I have a requirement to add 3 specific sites instead of all the sites like /content/.* to my filter pattern, but since pattern accepts only a single string, i am stuck with how to do it. Any ideas on how to proceed with this? ( I am new to AEM)
@SlingServletFilter(
scope = {SlingServletFilterScope.REQUEST},
pattern = "/content/.*",
resourceTypes = "cq:Page",
extensions = {"html"},
methods = {"GET"}
)
i want to add pattern = "/content/site1/.*" , "/content/site2/.*" , "/content/site3/.*"
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
Its a regex, you ca add any regex pattern
pattern = "/content/(site|site2|site3)/.*",
Hi,
Its a regex, you ca add any regex pattern
pattern = "/content/(site|site2|site3)/.*",
thank you so much @arunpatidar , just tried it
Views
Replies
Total Likes
Views
Likes
Replies