-
-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RouteEnhancer with aspect type "NewsTitle" breaks 404 handling in TYPO3 12 #2362
Comments
I can confirm this issue. Error handling will be broken for all pages if you don't use Example configuration: routeEnhancers: News: type: Extbase // limitToPages: // - 5 // - 6 extension: News plugin: Pi1 routes: - routePath: '/' _controller: 'News::list' - routePath: '/{page-label}-{page}' _controller: 'News::list' _arguments: page: 'currentPage' - routePath: '/{news-title}' _controller: 'News::detail' _arguments: news-title: news defaultController: 'News::list' defaults: page: '1' requirements: page: '\d+' aspects: page-label: type: LocaleModifier default: 'page' localeMap: - locale: 'de_DE.*' value: 'seite' page: type: StaticRangeMapper start: '1' end: '100' news-title: type: NewsTitle |
News has implemented a TypoScript configuration The worst thing you can do is:
Example: You request URL: https://example.com/article/fooNotFound Please configure an additional identifier in
or reduce possible aspects with As third option you can switch to "good old":
As For me this is a configuration issue, but not a news issue. |
Bug Report
Current Behavior
Using aspect type "NewsTitle" in RouteEnhnacer for news url routing breaks the 404 handling. If set and a wrong url is requested, the homepage of the website is shown (with news plugin on it) and error message "artcile not available" is visible. Plugin on the homepage is list+detail view. If I change this to news_newsliststicky, the list with news items is shown.
Expected behavior/output
If a wrong url is requested my 404 error page should be shown in frontend. Not the homepage of the website.
Environment
Possible Solution
If I change the aspect type to the old
PersistedAliasMapper
with the needed configuration for table and field, everything is fine. 404 pageworks like expected.Additional context
I don't understand why the PersistedAliasMapper/NewsTitle Aspect is called on a page without any plugin. No news, no other plugins. Just a wrong url!
I'm using
limitToPages
in my config.yamlJust an idea, maybe something goes wrong in the TYPO3 core
AspectFactory
and theNewsTitle
Aspect is cheating in between?The text was updated successfully, but these errors were encountered: