diff --git a/includes/common.inc b/includes/common.inc
index 7af86a4caf08a17eaf212990d997f58bdd1b87ce..423486e94af2da38f8f6c9ef9d1723a847edd0d9 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';
     }