Project

General

Profile

Actions

Bug #88703

closed

Generated alternate hreflang urls have not allowed transport method

Added by Markus Gehrig almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
SEO
Target version:
-
Start date:
2019-07-08
Due date:
% Done:

0%

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

Description

Google wants alternate URLs formatted as followed:

"Alternate URLs must be fully-qualified, including the transport method (http/https), so:
https://example.com/foo, not //example.com/foo or /foo"

(https://support.google.com/webmasters/answer/189077?hl=en)

At the moment TYPO3 generates alternate urls like //example.com/foo.

Our site configuration:

rootPageId: 1
base: '/'
languages:
  -
    title: Deutsch
    enabled: true
    languageId: '0'
    base: /de/
    typo3Language: de
    locale: de_CH.UTF-8
    iso-639-1: de
    navigationTitle: DE
    hreflang: 'de-ch'
    direction: 'ltr'
    flag: de
  -
    title: Italienisch
    enabled: true
    languageId: '3'
    base: /it/
    typo3Language: it
    locale: it_CH.UTF-8
    iso-639-1: it
    navigationTitle: IT
    hreflang: 'it-ch'
    direction: 'ltr'
    fallbackType: strict
    fallbacks: '3'
    flag: it
  -
    title: Englisch
    enabled: true
    languageId: '1'
    base: /en/
    typo3Language: default
    locale: en_GB.UTF-8
    iso-639-1: en
    navigationTitle: EN
    hreflang: 'en-gb'
    direction: 'ltr'
    fallbackType: strict
    fallbacks: '1'
    flag: gb
  -
    title: Französisch
    enabled: true
    languageId: '2'
    base: /fr/
    typo3Language: fr
    locale: fr_CH.UTF-8
    iso-639-1: fr
    navigationTitle: FR
    hreflang: 'fr-ch'
    direction: 'ltr'
    fallbackType: strict
    fallbacks: '2'
    flag: fr
errorHandling: {  }
baseVariants: 
  -
    base: 'http://www.example.local'
    condition: 'applicationContext == "Development"'
  -
    base: 'http://dev.examle.ch'
    condition: 'applicationContext == "Development/Remote"'
  -
    base: 'http://examle.ch'
    condition: 'applicationContext == "Production"'
routes: {  }

Actions

Also available in: Atom PDF