diff --git a/engine/lib/Url.class.php b/engine/lib/Url.class.php index 7ee4b64..b4405a7 100755 --- a/engine/lib/Url.class.php +++ b/engine/lib/Url.class.php @@ -83,7 +83,9 @@ class Url{ $custom = array(); if( !self::$url ){ if( c('static_url') ){ - self::$url = isset($_SERVER['REDIRECT_URL'])&&$_SERVER['REDIRECT_URL']?$_SERVER['REDIRECT_URL']:$_SERVER['PATH_INFO']; + //self::$url = isset($_SERVER['REDIRECT_URL'])&&$_SERVER['REDIRECT_URL']?$_SERVER['REDIRECT_URL']:$_SERVER['PATH_INFO']; + self::$url = trim( current( explode('?', $_SERVER['REQUEST_URI'])), '/' ); + self::$url = ltrim( self::$url, trim( self::URLBASE , '/' ) ); }else{ self::$url = $_GET; }