public function getCurrentPath() { $name = $this->currentRequestName; $parameters = $this->currentRequestParameters; return $this->getPath($name, $parameters); }
public function canonical() { $path = $this->router->getCurrentPath(); return $this->getUrlToPath($path); }