Skip to content

Commit d504026

Browse files
author
mcamara
committed
little bug fixed
1 parent 89b507e commit d504026

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Mcamara/LaravelLocalization/LaravelLocalization.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ public function getURLLanguage($language,$route = false)
121121
public function getCleanRoute($route = false)
122122
{
123123
if(!$route) $route = Request::url();
124+
if(substr($route, -1) !== "/") $route .= "/";
124125
return str_replace("/".$this->configRepository->get('application.language')."/","/",$route);
125126
}
126127
}

0 commit comments

Comments
 (0)