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

Remove redundant front page handling code.

parent bf41cd2e
Branches
Tags
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
......@@ -33,18 +33,9 @@ public function onKernelRequestPathResolve(GetResponseEvent $event) {
$path = $this->extractPath($request);
if (empty($path)) {
// @todo Temporary hack. Fix when configuration is injectable.
$path = variable_get('site_frontpage', 'user');
}
$system_path = drupal_get_normal_path($path);
$path = drupal_get_normal_path($path);
// Do our fancy frontpage logic.
if (empty($system_path)) {
$system_path = variable_get('site_frontpage', 'user');
}
$this->setPath($request, $system_path);
$this->setPath($request, $path);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment