summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/index.php b/index.php
index 3d149eab2..5da9d3cc1 100644
--- a/index.php
+++ b/index.php
@@ -4,7 +4,10 @@
include_once "includes/common.inc";
if (isset($_GET["q"])) {
- $mod = arg(0);
+ if (module_exist("node") && $path = node_get_alias($_GET["q"])) {
+ $_GET["q"] = $path;
+ }
+ $mod = arg(0);
}
else {
$_GET["q"] = variable_get("site_frontpage", "node");