Issues

ZF-8197: Translated route semgents are urlized correctly but don't match

Description

The following data is used inside the application.ini for initializing a new route with a i18n-segment: ;; Impressum: resources.router.routes.impressum.type = "Zend_Controller_Router_Route" resources.router.routes.impressum.route = ":language/@route_Impressum" resources.router.routes.impressum.defaults.module = "default" resources.router.routes.impressum.defaults.controller = "docs" resources.router.routes.impressum.defaults.action = "impressum" resources.router.routes.impressum.defaults.language = "de"

The translation-adapter and -files are prepared and set up correctly.

The Zend_Navigation-component for example is successfull in creating the url from the given route (de/Impressum or /fr/mentions-legales or /en/impress) - however following that url leads to a not-found-error (404).

But when I am requesting the url with translation-index instead (/de/route_Impressum or /fr/route_Impressum or /en/route_Impressum) the url will match and I get the requested page.

Summary: [1] Defined a new route with a translated segment. [2] Mapping the route to a Zend_Navigation-Entry [3] Route is urlized correctly in Zend_Navigation [4] Route doesn't match when followed. - Only the translation-index matches.

Comments

May be Zend_Navigation or Zend_Controller_Router_Route issue

{quote}The Zend_Navigation-component for example is successfull in creating the url from the given route ... [3] Route is urlized correctly in Zend_Navigation [4] Route doesn't match when followed. - Only the translation-index matches.{quote}

Why is it an error of Zend_Navigation? This makes no sense!