Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit a944ead

Browse files
committed
Merge branch 'hotfix/539' into release-3.0.0
Forward port #539 Conflicts: docs/book/cookbook/setting-locale-without-routing-parameter.md
2 parents 0401758 + 8ac020e commit a944ead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/book/cookbook/setting-locale-without-routing-parameter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class SetLocaleMiddleware implements MiddlewareInterface
7676

7777
// Expressive 2.X:
7878
return $handler->process($request->withUri(
79-
$uri->withPath(substr($path, 3))
79+
$uri->withPath(substr($path, strlen($locale)+1))
8080
));
8181
}
8282
}

0 commit comments

Comments
 (0)