public function getTaskNameByUrl($url) { $urlObj = new \Nette\Http\Url($url); return $urlObj->getBasePath() . $urlObj->getRelativeUrl(); }