Project

General

Profile

Actions

Bug #88307

closed

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

Added by Florian Wessels about 5 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
AdminPanel
Target version:
-
Start date:
2019-05-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
CodingNight
Complexity:
Is Regression:
Sprint Focus:

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


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #87759: Record preview fails when the record is disabled or before starttime because of routingNew2019-02-21

Actions
Actions

Also available in: Atom PDF