I got the solution for this. We can get product information from the node "/libs/cq/core/productinfo" Example: def productInfo = request.resourceResolver.getResource("/libs/cq/core/productinfo")?.adaptTo(ValueMap) ?: [:] String version = productInfo["shortVersion"]
I have the below requirement could someone provide inputs as what could be done1. I want to rewrite the "localhost:4502/tools.html" to "http://localhost:4502/apps/cq/core/content/tools.html"If I check in "http://localhost:4502/system/console/jcrresolver" for /tools/html , I can see the rewrite url...