Project

General

Profile

Actions

Bug #87155

closed

Strange link building when having several page types configured

Added by Jan Kornblum almost 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2018-12-13
Due date:
% Done:

100%

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

Description

There are tow page types configured (the second for ajax calls):

routeEnhancers:
  PageTypeSuffix:
    type: PageType
    default: '.html'
    map:
      '.html': 0 
      '.json': 9876

Now there is a form which creates the ajax url:

<f:form pluginName="Contact" controller="Contact" action="create" name="contact" object="{contact}" pageUid="1" pageType="9876">

If "pageUid" is set to 1 (root page), the call doesn't resolve to the ajax page type. Generated URL in this case is:

/index.json?tx_myext_contact[action]=create&cHash=439fdf59e0347b592dc634fc61b1f871

But if "pageUid" is set to 7 (or any other page, but not root page itself), the call corryctly resolves to the ajax page type. Generated URL ins this case is:

/kontakt/impressum.json?tx_myext_contact[action]=create&cHash=60e3a054b7228703f8ab3d0d385063cb

Having no RouteEnhancers at all, everything (default page type + ajax page type) work fine as expected.

I don't know if this is caused by a misconfiguration with the RouteEnhancers on my side. But perhaps this is a little bug?


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #88836: page type not respected under some circumstancesClosed2019-07-24

Actions
Actions #1

Updated by Susanne Moog almost 5 years ago

  • Sprint Focus set to On Location Sprint
Actions #2

Updated by Markus Klein almost 5 years ago

  • Related to Bug #88836: page type not respected under some circumstances added
Actions #3

Updated by Gerrit Code Review almost 5 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62863

Actions #4

Updated by Gerrit Code Review almost 5 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62863

Actions #5

Updated by Gerrit Code Review almost 5 years ago

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62907

Actions #6

Updated by Daniel Goerz almost 5 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF