title: How to find route of a current page?
body: <p>Is there a line of code that I can use in the controller that determines the route of a current page?</p>
  
  <p>For example, I would like to find the route of the page with SEO url <code>https://example.com/desktops</code> (this should return the route <code>product/category</code>).</p>
  
  <p>Similarly, url such as <code>https://example.com/index.php?route=product/product&amp;path=18&amp;product_id=47</code> should return route as <code>product/product</code>.</p>