Set correct FM_SELF_URL

This commit is contained in:
Sharif El Shobkshy 2021-01-04 13:22:21 -03:00
parent 7d98bdf5b2
commit 654d7dbd2a

View file

@ -230,7 +230,10 @@ $root_url = fm_clean_path($root_url);
// abs path for site
defined('FM_ROOT_URL') || define('FM_ROOT_URL', ($is_https ? 'https' : 'http') . '://' . $http_host . (!empty($root_url) ? '/' . $root_url : ''));
defined('FM_SELF_URL') || define('FM_SELF_URL', ($is_https ? 'https' : 'http') . '://' . $http_host . '/browse');
defined('FM_SELF_URL') || define('FM_SELF_URL', ($is_https ? 'https' : 'http') . '://' . $http_host . $_SERVER['REDIRECT_URL']);
var_dump($_SERVER['REDIRECT_URL']);
// logout
if (isset($_GET['logout'])) {