I don't believe sightly supports this, you can use js OR java code(Sling Model) to do this: Some steps copied from a similar post: 1. Your class adaptable from SlingHttpServletRequest2 Add the following inject @injectprivate Page currentPage;3: check path contains editor.html currentPage.path.contai...