// Fix redirection to index when friendly url are activated #PSFV-488
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13270 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
59de645ec9
commit
d92c298178
1 file changed
+3
-1
@@ -545,8 +545,10 @@ class DispatcherCore
|
|||||||
else if (isset($_POST['controller']))
|
else if (isset($_POST['controller']))
|
||||||
$_POST[$m[2]] = $m[3];
|
$_POST[$m[2]] = $m[3];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Validate::isControllerName($controller))
|
if (!Validate::isControllerName($controller))
|
||||||
$controller = false;
|
$controller = false;
|
||||||
|
|
||||||
// Use routes ? (for url rewriting)
|
// Use routes ? (for url rewriting)
|
||||||
if ($this->use_routes && !$controller)
|
if ($this->use_routes && !$controller)
|
||||||
{
|
{
|
||||||
@@ -576,7 +578,7 @@ class DispatcherCore
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($controller == 'index')
|
if ($controller == 'index' || $this->request_uri == '/index.php')
|
||||||
$controller = $this->default_controller;
|
$controller = $this->default_controller;
|
||||||
$this->controller = $controller;
|
$this->controller = $controller;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user