TYPO3 Forge: Issueshttp://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692019-05-07T13:47:27ZTYPO3 Forge
Redmine TYPO3 Core - Bug #88291 (Closed): Exception thrown if slash in route field of PersistedPatternMap...http://forge.typo3.org/issues/882912019-05-07T13:47:27ZDaniel Reichel
<p>In my site configuration I have configured a aspect of type PersistedPatternMapper for the detail view of a record of my custom extension.<br />If the configured route field contains a slash, a error occurs in the frontend.</p>
<p><img src="http://forge.typo3.org/attachments/download/34284/exception.jpg" title="Exception thrown in frontend" alt="Exception thrown in frontend" loading="lazy" /></p>
<p>You can reproduce the bug using the news extension. I know, the news extension has a slug field but my custom extension which you dont't have has not.<br />This is the site configuration:</p>
<pre>
routeEnhancers:
NewsPlugin:
type: Extbase
extension: News
plugin: Pi1
routes:
- { routePath: '/news/{news}', _controller: 'News::detail', _arguments: {'news': 'news_title'} }
defaultController: 'News::detail'
aspects:
news:
type: PersistedPatternMapper
tableName: 'tx_news_domain_model_news'
routeFieldPattern: '^(?P<title>.+)-(?P<uid>\d+)$'
routeFieldResult: '{title}-{uid}'
</pre>