Issue Bug Closed

#88307Detail pages showing hidden data records are not accessible (PersistedAliasMapper route enhancer)

Florian Wessels 05/08/19, 18:49 updated 04/01/20, 21:14

Description

Example: tx_news data records

How to reproduce:
  • Enable the admin tool, open the settings tab in the frontend and enable the “Show hidden records” option.
  • You have several news. The newest one is hidden because you do not want to publish the news yet. Instead you want to see a preview on the website
  • When you open the list page, you will see the hidden record at the top of the list
  • Clicking on this record (to go to the detail page) will case a 404 error

Site Configuration:

routeEnhancers:
  NewsPlugin:
    type: Extbase
    extension: News
    plugin: Pi1
    routes:
       routePath: '/{news_title}'
       _controller: 'News::detail'
       _arguments:
         news_title: news
    defaultController: 'News::list'
    defaults:
      page: '0'
    aspects:
      news_title:
        type: PersistedAliasMapper
        tableName: tx_news_domain_model_news
        routeFieldName: path_segment

Reviews 2