Subroutes can't use empty uriPattern as fallback
|Priority:||Should have||Due date:|
|Assignee:||Bastian Waidelich||% Done:||
|Category:||MVC - Routing|
|Has patch:||No||FLOW3 version affected:||(any)|
I have several packages, for each package I like to create a routing shortcut.
So that instead of using these urls
I can use these
I prefer to shorten the routes by adding subroutes to the global Routes.yaml like this:
- name: 'Myverylongpersonalname Myproject' uriPattern: 'mm/<MMSubroutes>' defaults: '@package': 'Myverylongpersonalname.Myproject' subRoutes: MMSubroutes: package: Myverylongpersonalname.Myproject
Now I would expect that I can add uriPattern: '' as a fallback route in the Routes.yaml of Myverylongpersonalname.Myproject, but I get:
The URI pattern "mm/" of route "Myverylongpersonalname Myproject :: fallback" ends with a slash, which is not allowed. You can put the trailing slash in brackets to make it optional.
Well and uriPattern: '(/)' doesn't work either.
|duplicates TYPO3.Flow - Feature #31777: SubRoutes should allow routes starting or ending with /||Resolved||2011-11-12|