Skip to content
Snippets Groups Projects
Commit 26be0d8d authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

#77479 by RayZ. drupal_is_front_page() now works if the front page path is an alias.

parent 71e191d9
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
......@@ -197,5 +197,5 @@ function drupal_set_title($title = NULL) {
function drupal_is_front_page() {
// As drupal_init_path updates $_GET['q'] with the 'site_frontpage' path,
// we can check it against the 'site_frontpage' variable.
return $_GET['q'] == variable_get('site_frontpage', 'node');
return $_GET['q'] == drupal_get_normal_path(variable_get('site_frontpage', 'node'));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment