summaryrefslogtreecommitdiffstats
path: root/usr/local/www/shortcuts.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-08-17 10:43:12 -0400
committerjim-p <jimp@pfsense.org>2012-08-17 10:43:12 -0400
commitbe9c20c7a18277c5c5b8d54fabcb1f5464472439 (patch)
treec21eb93454268063c1adfa19756f201e31e7a1aa /usr/local/www/shortcuts.inc
parentdc3e3acb9ba8329b73ac37ebfa938f5e9e31d248 (diff)
downloadpfsense-be9c20c7a18277c5c5b8d54fabcb1f5464472439.zip
pfsense-be9c20c7a18277c5c5b8d54fabcb1f5464472439.tar.gz
Use REQUEST_URI here so the GET parameters are preserved (makes the links work better for things like interfaces.php?if=wan, and packages.
Diffstat (limited to 'usr/local/www/shortcuts.inc')
-rw-r--r--usr/local/www/shortcuts.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/shortcuts.inc b/usr/local/www/shortcuts.inc
index ca42593..830b258 100644
--- a/usr/local/www/shortcuts.inc
+++ b/usr/local/www/shortcuts.inc
@@ -92,7 +92,7 @@ function get_shortcut_main_link($shortcut_section, $addspace = true, $service =
$link = $shortcuts[$shortcut_section]['main'];
break;
}
- if(!empty($link) && ($_SERVER['SCRIPT_NAME'] != "/{$link}"))
+ if(!empty($link) && ($_SERVER['REQUEST_URI'] != "/{$link}"))
return "{$space}<a href=\"{$link}\" title=\"" . gettext("Main page for this section") . "\"><img style=\"vertical-align:middle\" src=\"/themes/{$g['theme']}/images/icons/icon_plus.gif\" border=\"0\"></a>";
}
OpenPOWER on IntegriCloud