public function getCurrentUrl() { $staticPrefix = null; $route = $this->app->request->route(); if (null != $route) { $compRoute = $route->getCompiled(); $staticPrefix = $compRoute->getStaticPrefix(); } return $staticPrefix; }