Project

General

Profile

Actions

Bug #90151

open

ContentObjectRenderer typoLink language link is generated witch /

Added by Timo Poppinga almost 5 years ago. Updated over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2020-01-19
Due date:
% Done:

0%

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

Description

If you use the method typoLink of the class ContentObjectRenderer to generate an link of an root language page like /en or /de. It comse alle the time wich / at the end e.g. /en/ /de/.

If you configure in your site config e.g.

-
title: Englisch
enabled: true
base: /en
typo3Language: default
locale: en_GB.UTF-8
iso-639-1: en
websiteTitle: ''
navigationTitle: English
hreflang: en-GB
direction: ltr
fallbackType: strict
fallbacks: ''
flag: en-us-gb
languageId: '3'

you can call the site by /de and /de/ will be redirected to /de but the typoLink method still genarte an link /de/


Related issues 4 (3 open1 closed)

Related to TYPO3 Core - Bug #90045: Sitemap Errors if the language has no trailing slash at the end like /de it is linked in the sitemap like /de/Needs Feedback2020-01-02

Actions
Related to TYPO3 Core - Bug #88544: Trailing slash gets added to "homepage" urls if base is without trailing slashAccepted2019-06-12

Actions
Related to TYPO3 Core - Story #101565: Frontend related translation issuesNew2023-08-03

Actions
Has duplicate TYPO3 Core - Bug #90043: On language root level the canonical link is not generated correctly; also in TYPO3 9Closed2020-01-01

Actions
Actions

Also available in: Atom PDF