Commit 03acf9ca authored by Aaron Kuzemchak's avatar Aaron Kuzemchak

Fixes language URI routing issue

Signed-off-by: 's avatarAaron Kuzemchak <aaron@kuzemchak.net>
parent 38562d50
......@@ -137,7 +137,7 @@ $languages[] = Config::get('application.language');
foreach ($languages as $language)
{
if (starts_with($uri, $language))
if (preg_match("#^{$language}(/.*)?$#i", $uri))
{
Config::set('application.language', $language);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment