diff --git a/src/SlmLocale/View/Helper/LocaleUrl.php b/src/SlmLocale/View/Helper/LocaleUrl.php index d2fc0ad..2d03515 100644 --- a/src/SlmLocale/View/Helper/LocaleUrl.php +++ b/src/SlmLocale/View/Helper/LocaleUrl.php @@ -106,6 +106,11 @@ public function __invoke($locale, $name = null, $params = array(), $options = ar * route match is present, we've a 404 and grab the path from the request object. */ if ($this->getRouteMatch()) { + + if (!isset($options['locale'])) { + $options['locale'] = $locale; + } + $url = $this->getView()->url($name, $params, $options, $reuseMatchedParams); } else { $url = $this->getRequest()->getUri()->getPath();