Certain parameters such as 'page=', 'cPath=' and 'keywords=' were not passed when clicking pagination links. Is there a way to resolve this issue? I tried the solution below from year 2007 posting but did not effect anything
function requested_page()
{
$protocol = ((int) $_SERVER['SERVER_PORT'] === 443)? 'https://' : 'http://';
$current_page = $protocol . $_SERVER['HTTP_HOST'] . ((!empty($_SERVER['REQUEST_URI']))? $_SERVER['REQUEST_URI'] : '');
$current_page = substr($current_page, strlen(HTTP_SERVER));
if (($pos = strpos($current_page, "?osCsid")) !== FALSE)
$current_page = substr($current_page, 0, $pos).'<br>';
if ($current_page[0] == "/")
$current_page = substr($current_page, 1);
return $current_page;
Now
return $return;