Actions
Bug #94585
closedSiteconfig - 404 error not triggered if routeEnhancers is configured
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2021-07-19
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Slug routeHandling errorHandling
Complexity:
Is Regression:
Yes
Sprint Focus:
On Location Sprint
Description
Hi guys,
We encounter a bug with the handling of invalid URLs when the routeEnhancers section is configured.
In fact, https://myDomain.com/xyz shows us the home page instead of triggering a 404 error whereas using raw URLs with an invalid id argument properly works.
Did we miss something?
base: '%env(BASE_URL)%'
baseVariants: { }
errorHandling:
- errorCode: '404'
errorHandler: Page
errorContentSource: 't3://page?uid=404'
languages:
-
title: Français
enabled: true
base: /
typo3Language: fr_CA
locale: fr_CA.UTF-8
iso-639-1: fr
navigationTitle: Français
hreflang: fr-CA
direction: ltr
flag: qc
languageId: '0'
-
title: English
enabled: true
base: /en/
typo3Language: default
locale: en_CA.UTF-8
iso-639-1: en
navigationTitle: English
hreflang: en-CA
direction: ltr
fallbackType: strict
fallbacks: '1'
flag: ca
languageId: '1'
rootPageId: 1
routeEnhancers:
News:
type: Extbase
extension: News
plugin: Pi1
routes:
- routePath: '/{news-title}'
_controller: 'News::detail'
_arguments:
news-title: news
defaultController: 'News::results'
aspects:
news-title:
type: PersistedAliasMapper
tableName: tx_news_domain_model_news
routeFieldName: path_segment
routes:
- route: robots.txt
type: staticText
content: |
User-agent: *
Allow: /
Disallow: none
- route: sitemap.xml
type: uri
source: 't3://page?uid=1&type=1533906435'
Files
Actions