Routes and TYPO3 404 Error-Page

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
heural
Posts: 62
Joined: 09 Jun 2022, 07:55

Routes and TYPO3 404 Error-Page

Post by heural » 02 Sep 2024, 11:29

Hi Aimeos-Team,

we have the following 2 routes in RouteEnhancer (as last 2 routes) that works in Aimeos 2022 (Typo3 11.5.37):

Code: Select all

      
        routePath: '/{f_catid}/{f_name}'
        _controller: 'Catalog::list'
      
        routePath: '/{f_catid}/{f_name}/{d_name}'
        _controller: 'Catalog::detail'
Now in Aimeos 2023 it worked also but now we have the problem, that the 404 Page is never triggered if a url is not found.
The homepage of typo3 is shown instead. If we remove the 2 routes, it works as expected (wrong url -> 404 Page is shown)

Could this be a Aimeos and /or Typo3 problem?
Typo3: 12.4.15
Aimeos: 2023.10.7

Thank you very much!

heural
Posts: 62
Joined: 09 Jun 2022, 07:55

Re: Routes and TYPO3 404 Error-Page

Post by heural » 03 Sep 2024, 12:10

A workaround is to add "limitToPages" in the route enhancer config.

Post Reply