public function basePath($url, $path, $args) { $path_object = new Path(''); $rewriting = \Config::get('concrete.seo.url_rewriting'); $rewrite_all = \Config::get('concrete.seo.url_rewriting_all'); $in_dashboard = \Core::make('helper/concrete/dashboard')->inDashboard($path); // If rewriting is disabled, or all_rewriting is disabled and we're // in the dashboard, add the dispatcher. if (!$rewriting || !$rewrite_all && $in_dashboard) { $path_object->prepend(DISPATCHER_FILENAME); } return $path_object; }
protected function basePath($url, $path, $args) { $config = $this->config; $path_object = new Path(''); $rewriting = $config->get('concrete.seo.url_rewriting'); $rewrite_all = $config->get('concrete.seo.url_rewriting_all'); $in_dashboard = $this->dashboard->inDashboard($path); // If rewriting is disabled, or all_rewriting is disabled and we're // in the dashboard, add the dispatcher. if (!$rewriting || !$rewrite_all && $in_dashboard) { $path_object->prepend(DISPATCHER_FILENAME); } return $path_object; }