From 6958037da6a242b92367624534b1c8ca1ecd1c5c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 20 Oct 2003 07:47:18 +0000 Subject: - Bugfix: made the "Default front page" setting work with URL aliases. Patch by Matt. --- includes/common.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index 8aa9e853e..48984ac52 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1178,7 +1178,12 @@ if (!empty($_GET["q"])) { } } else { - $_GET["q"] = variable_get("site_frontpage", "node"); + if ($path = drupal_get_normal_path(variable_get("site_frontpage", "node"))) { + $_GET["q"] = $path; + } + else { + $_GET["q"] = variable_get("site_frontpage", "node"); + } } // initialize installed modules: -- cgit v1.2.3