Is there a standard way in Adobe CQ5 to get the current page url in order to create automatic canonical links in the head of the JSP?
Basically we have a dialogue config box where you can override the canonical link, but by default if this is empty I want to construct the link based on the raw URL path for the current request.
The JSP for the head is shared across all requests.
Many thanks