Issues

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

Issue Type: Bug Created: 2009-11-01T01:45:18.000+0000 Last Updated: 2011-02-09T04:57:58.000+0000 Status: Open Fix version(s): Reporter: Innocentus (innocentus) Assignee: Ben Scholzen (dasprid) Tags: - Zend_Controller_Router

Related issues: - ZF-10418

Attachments:

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

Posted by Satoru Yoshida (satoruyoshida) on 2009-11-06T21:52:23.000+0000

May be Zend_Navigation or Zend_Controller_Router_Route issue

Posted by Kai Uwe (kaiuwe) on 2011-02-09T04:54:04.000+0000

{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!

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts