Skip to content

Commit 3dc778b

Browse files
author
Marc Cámara
committed
Merge pull request #181 from armababy/master
fixes #174
2 parents 8918b9e + b4ddc5e commit 3dc778b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mcamara/LaravelLocalization/LaravelLocalization.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ protected function findTranslatedRouteByPath( $path, $url_locale )
685685
// check if this url is a translated url
686686
foreach ( $this->translatedRoutes as $translatedRoute )
687687
{
688-
if ( $this->translator->trans($translatedRoute, [ ], "", $url_locale) == $path )
688+
if ( $this->translator->trans($translatedRoute, [ ], "", $url_locale) == rawurldecode($path) )
689689
{
690690
return $translatedRoute;
691691
}

0 commit comments

Comments
 (0)