Skip to content
Snippets Groups Projects
Commit fccf65ba authored by Larry Garfield's avatar Larry Garfield
Browse files

Move frontpage handling to the PathSubscriber.

parent 47e02334
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -39,6 +39,11 @@ public function onKernelRequestPathResolve(GetResponseEvent $event) {
}
$system_path = drupal_get_normal_path($path);
// Do our fancy frontpage logic.
if (empty($system_path)) {
$system_path = variable_get('site_frontpage', 'user');
}
$request->attributes->set('system_path', $system_path);
// @todo Remove this line once code has been refactored to use the request
......
......@@ -94,11 +94,6 @@ public function match($pathinfo) {
$dpathinfo = ltrim($pathinfo, '/');
}
// Do our fancy frontpage logic.
if (empty($dpathinfo)) {
$dpathinfo = variable_get('site_frontpage', 'user');
}
if ($router_item = $this->matchDrupalItem($dpathinfo)) {
$ret = $this->convertDrupalItem($router_item);
// Stash the router item in the attributes while we're transitioning.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment