Sling Filter pattern works in local but not in real environment
We have a sling filter to read some page properties. We have registered with the pattern. It all works great in local AEM instance but as soon as we deploy the code to our environments (DEV, QA, PROD), the filter is not even getting called.
@8220494
@SlingServletFilter(
scope = {SlingServletFilterScope.REQUEST},
pattern = "/content/myapp/.*",
extensions = "html"
)In the local instance, the URL is "/content/myapp/us/en/home/test.html". But in the environment, the URL is "myapp.com/test" which is handled through Dispatcher.
Is there anything I am missing here?
Just FYI, we are on AMS.
Thank you!