[Flow] Re: Using Chinese characters as Identity for Object Route Parts

Rocky rockysynergy at gmail.com
Tue Oct 21 09:38:14 CEST 2014


The Routes.yaml file has below configuration:
- 
  name: 'DashboardSchool' 
  uriPattern: 'dashboard/school/{school}' 
  defaults: 
      '@package': 'Hwwcn.Sponsor' 
      '@controller': 'Dashboard' 
      '@action': 'school' 
      '@format': 'html' 
  routeParts: 
      school: 
         objectType: '\Hwwcn\Sponsor\Domain\Model\School' 
         uriPattern: '{name}'

If I edit TYPO3.Flow/Classes/TYPO3/Flow/Mvc/Routing/IdentityRoutePart.php as below, it works.
    1. At line 271  $pathSegment .= $this->rewriteForUri($dynamicPathSegment); becomes $pathSegment .= $dynamicPathSegment;
    2. Before line 148 insert $pathSegment = urldecode($pathSegment); 

Edit TYPO3.Flow package code is not good. What are the other options I have please?

 


More information about the Flow mailing list