You are here

11 March 2011
How to get full/absolute url of the page you are currently visiting.
This is how you can get full url of the page you are on. You can use this code in your theme or module.
Source code viewer
  1. <?php
  2. $url = url($_GET['q'], array('absolute' => true));
  3. ?>
Programming Language: PHP