Skip to content

Commit b4ddc5e

Browse files
committed
fixes #174
1 parent f98484e commit b4ddc5e

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)