diff --git a/lib/util/util.php b/lib/util/util.php index bf3b4e8001..53c339279f 100644 --- a/lib/util/util.php +++ b/lib/util/util.php @@ -1383,7 +1383,7 @@ function common_relative_profile($sender, $nickname, $dt=null) return null; } -function common_local_url($action, $args=null, $params=null, $fragment=null, $addSession=true) +function common_local_url($action, $args=null, $params=null, $fragment=null, $addSession=true, $defancy = false) { if (Event::handle('StartLocalURL', [&$action, &$params, &$fragment, &$addSession, &$url])) { $r = Router::get(); @@ -1391,7 +1391,7 @@ function common_local_url($action, $args=null, $params=null, $fragment=null, $ad $ssl = GNUsocial::useHTTPS(); - if (common_config('site', 'fancy')) { + if (common_config('site', 'fancy') && !$defancy) { $url = common_path($path, $ssl, $addSession); } else { if (mb_strpos($path, '/index.php') === 0) {