Multilingual sitemap test fails for some language negotiation plugins

Created on 17 August 2021, over 3 years ago
Updated 11 December 2024, 11 days ago

Problem/Motivation

The "isMultilingualSitemap()" method returns false in some cases even when there are enabled language URL negotiation methods.

Steps to reproduce

Install Domain Country Path module, enable "Country Path Language Handler URL" plugion for content language detection.
Add two or more site languages.
Translate some content.
Generate sitemaps. Alternate URL column should be empty where it is expected to contain HREFLANG alternate links to translated content URLs.

Summary of debugging / proposed solution

Based on my review, I opened a ticket with the Domain Country Path module, linked here as a related issue. I'm not sure if the problem lies with that module, or with core's management of the language types config, but that issue hopefully will useful in determining that.

For this issue, I propose a patch that will act as a temporary workaround and inspect ALL language type plugins to determine if any of the enabled plugins are url based.

πŸ“Œ Task
Status

Closed: works as designed

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ben.hamelin Adirondack Mountains, NY

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024