Project

General

Profile

Actions

Bug #86227

closed

Make xml-sitemap links absolute

Added by Wittkiel Gruppe over 5 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2018-09-11
Due date:
% Done:

0%

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

Description

As stated in https://support.google.com/webmasters/answer/183668?hl=en#general-guidelines the URLs in sitemap should be "fully-qualified URLs. Google will crawl your URLs exactly as listed. For instance, if your site is at https://www.example.com/, don't specify a URL as https://example.com/ (missing www) or ./mypage.html (a relative URL)."

Our config:
No domain in sys_domain or TypoScript.

Site-Configuration:

site:
  rootPageId: 1
  base: /
  languages:
    -
      languageId: '0'
      title: Deutsch
      navigationTitle: Deutsch
      base: /
      locale: de_DE.UTF-8
      iso-639-1: de
      hreflang: de-DE
      direction: ltr
      typo3Language: de
      flag: de
      enabled: true
  errorHandling: {  }

Non-composer
TYPO3 9.4.0
PHP 7.2


Files

xml-sitemap-relative.png (9.69 KB) xml-sitemap-relative.png Wittkiel Gruppe, 2018-09-11 08:45
Actions #1

Updated by Wittkiel Gruppe over 5 years ago

  • Subject changed from Make sitemap links absolute to Make xml-sitemap links absolute
  • Priority changed from Should have to Must have
Actions #2

Updated by Wittkiel Gruppe over 5 years ago

  • Description updated (diff)
Actions #3

Updated by Richard Haeser over 5 years ago

This issue occurs because no full domain is given in path. Have to discuss if we want to support his from core.

Actions #4

Updated by Georg Ringer over 5 years ago

  • Related to Task #86224: Make hreflang links absolute added
Actions #5

Updated by Richard Haeser over 5 years ago

  • Related to deleted (Task #86224: Make hreflang links absolute)
Actions #6

Updated by Gerrit Code Review over 5 years ago

  • Status changed from New to Under Review

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/58259

Actions #7

Updated by Richard Haeser over 5 years ago

  • Target version deleted (9 LTS)

With the right setup of your site, you will already have absolute links. Only when you don't specify a domain, you won't get absolute URL's. First there should be a decision if the core "accepts" configuration without a domain.

Actions #8

Updated by Georg Ringer over 5 years ago

  • Category changed from SEO to Link Handling, Site Handling & Routing
  • Status changed from Under Review to Rejected

I am closing this issue because of conceptional issues. If / is given, there is no chance to create an absolute url in every case like CLI. this would be then guessing and also leads to lot other troubles like caches.

So if you need absolute urls, provide a domain and all is fine

Actions

Also available in: Atom PDF