Project

General

Profile

Actions

Bug #87562

closed

Duplicate Content for home page with /index/

Added by Samuel Heinz about 5 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2019-01-28
Due date:
% Done:

0%

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

Description

After updating from TYPO3 9.5.3 to 9.5.4 the home page of the website is available with two url combinations:
www.domain.tld
www.domain.tld/index/

Site configuration snippet

rootPageId: 1
base: 'https://www.domain.tld'
baseVariants: {  }
routeEnhancers:
  PageTypeSuffix:
    type: PageType
    default: '/'

All typolinks for home page (ID:1) now redirects to "https://www.domain.tld/index/" instead of "https://www.domain.tld/" like before.
The home page (ID:1) is a default page and no shortcut.

Best regards
Sam

Actions #1

Updated by Julian Wundrak about 5 years ago

Hi,

you can use as workaround:

rootPageId: 1
base: 'https://www.domain.tld'
baseVariants: {  }
routeEnhancers:
  PageTypeSuffix:
    type: PageType
    default: '/'
    index: ''

The critical source is here: https://github.com/TYPO3/TYPO3.CMS/blob/5e589a3353f7ab5928550f416e6a17d88e1fe458/typo3/sysext/core/Classes/Routing/Enhancer/PageTypeDecorator.php#L160

Actions #2

Updated by Samuel Heinz about 5 years ago

Hi Julian,
thx for the workaround, tested successfully.

Best regards
Sam

Actions #3

Updated by Benni Mack almost 4 years ago

  • Status changed from New to Closed

Yes. We introduced "index: ''" exactly for this reason

Actions

Also available in: Atom PDF