I need to get the full URL of the currently opened page. I use the following code, but it returns http://localhost/mysite/page_name
.
$path = isset($_GET['q']) ? $_GET['q'] : '<front>';
$link = url($path, array('absolute' => TRUE));
It's not enough for my code to complete; I want to get the values that are passed with the URL as http://localhost/mysite/page_name/value1=value&value2=value
.
How can I do that?