public function getPureUrl($url) { $url = preg_replace('/^\\//', '', $url); if ($this->alias) { return '/' . preg_replace('/^' . preg_quote($this->alias, '/') . '\\//', '', $url); } return '/' . $url; }