diff --git a/infolog/inc/class.uiinfolog.inc.php b/infolog/inc/class.uiinfolog.inc.php index 8d39ee3fda..e4c30e6fd3 100644 --- a/infolog/inc/class.uiinfolog.inc.php +++ b/infolog/inc/class.uiinfolog.inc.php @@ -199,12 +199,16 @@ if (!$referer) $referer = $HTTP_REFERER; - $url = parse_url($referer); - $referer = str_replace($phpgw_info['server']['webserver_url'],'', - $url['path']); + //echo "
get_referer: referer=$referer, webserver_url=".$phpgw_info['server']['webserver_url']; + + $url = parse_url(str_replace($phpgw_info['server']['webserver_url'],'', + $referer)); + $referer = $url['path']; + if ($url['query']) $referer .= '?'.$url['query']; - //echo "
referer: $HTTP_REFERER --> $referer
"; + + //echo " --> $referer"; return $referer; }