title: Get Current Page Url In Adobe CQ5 for Canonical Link
body: <p>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?</p>
  
  <p>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.</p>
  
  <p>The JSP for the head is shared across all requests.</p>
  
  <p>Many thanks</p>