[-] FO : 301 Redirect /iso_lang to /iso_lang/ url

This commit is contained in:
gRoussac
2013-09-12 11:16:12 +02:00
parent 90091d4f2c
commit e5276ff531
+1 -1
View File
@@ -369,7 +369,7 @@ class DispatcherCore
// If there are several languages, get language from uri
if ($this->use_routes && Language::isMultiLanguageActivated())
if (preg_match('#^/([a-z]{2})/#', $this->request_uri, $m))
if (preg_match('#^/([a-z]{2})/?#', $this->request_uri, $m))
{
$_GET['isolang'] = $m[1];
$this->request_uri = substr($this->request_uri, 3);