Fixing $url_path

the old line of code was looking at $_SERVER['PHP_SELF'] which only returns the /index.php file in the web directory and so dirname only returns / and thus only strips all slashes from the $this->requested_url

this change simply takes the $this->requested_url and spits out the PHP_URL_PATH