From 07d53792c400867f15e415004c71eb302e52ed19 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Fri, 28 May 2004 20:05:15 +0000
Subject: [PATCH] - Patch #8089 by matthias: make sure aliased links can be
 flagged as 'active'.

---
 includes/common.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/includes/common.inc b/includes/common.inc
index 7af86a4caf08..423486e94af2 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -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';
     }
-- 
GitLab