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
- $url = url($_GET['q'], array('absolute' => true));
- ?>Programming Language: PHP