Commit 5081f9d0 authored by Dries's avatar Dries

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

parent 7ad06399
......@@ -1102,7 +1102,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';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment