+ $return_url = hex2bin($return);
+
+ // removes update_* from return_url to ignore Ajax refresh
+ $return_url = str_replace("update_", "", $return_url);
+
+ // if unknown location or top level post called from display
+ if (empty($return_url) || ((strpos($return_url, 'display') !== false) AND (!$is_comment))) {
+ $a->internalRedirect('network');
+ //NOTREACHED
+ }
+ else {
+ $a->internalRedirect($return_url);
+ //NOTREACHED
+ }