Skip to content
Snippets Groups Projects
Commit 07d53792 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #8089 by matthias: make sure aliased links can be flagged as 'active'.

parent 8c75cda0
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
......@@ -1204,7 +1204,7 @@ function drupal_attributes($attributes = array()) {
}
function l($text, $url, $attributes = array(), $query = NULL, $fragment = NULL, $absolute = NULL) {
if ($url == $_GET['q']) {
if (drupal_get_normal_path($url) == $_GET['q']) {
if (isset($attributes['class'])) {
$attributes['class'] .= ' active';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment