diff --git a/basecoat/classes/routing.class.php b/basecoat/classes/routing.class.php index de52ea3..98db2ea 100644 --- a/basecoat/classes/routing.class.php +++ b/basecoat/classes/routing.class.php @@ -232,8 +232,7 @@ public function parseUrl($url=null) { // Check what URL format is in use if ( $this->settings['use_pretty_urls'] ) { // Determine path relative to document root - $url_path = str_replace(dirname($_SERVER['PHP_SELF']), '', $this->requested_url); - $url_path = trim( parse_url($url_path, PHP_URL_PATH), '/'); + $url_path = trim( parse_url($this->requested_url, PHP_URL_PATH), '/'); if ( $url_path=='' ) { $this->run_routes = array('/'); } else { @@ -293,4 +292,4 @@ private function logProfiling($route_name) { ); } -} \ No newline at end of file +}