Domain empty for non enity pages + query string not added when page is a node entity

Created on 10 February 2023, almost 2 years ago
Updated 20 February 2023, over 1 year ago

Hello,
Drupal 9.5.2

1-hreflang is empty for current language for non entity pages like sitemap page

2- for entity pages like node and when we have query string on the url, hreflang don't contain this parameters and create issue with search engines
i have found a patch for content transltion module but looks like not enough https://www.drupal.org/project/drupal/issues/3226887 πŸ› Hreflang on non-canonical content pages Needs work

Thank you

πŸ› Bug report
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

πŸ‡ΉπŸ‡³Tunisia medwassim

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

Comments & Activities

  • Issue created by @medwassim
  • Status changed to Postponed: needs info almost 2 years ago
  • πŸ‡ΊπŸ‡ΈUnited States mfb San Francisco

    If you turn off the defer to content translation setting, then Hreflang module should add query params to the page.

    Regarding the empty href attribute, it'd help if you can write a failing test that demonstrates the issue. Otherwise all I have to work with is the screenshot, which doesn't tell me what caused the issue.

  • Status changed to Closed: cannot reproduce over 1 year ago
  • πŸ‡ΉπŸ‡³Tunisia medwassim

    @mfb Thank you
    we resolved the issue(conflict with a custom hook_language_switch_links_alter).
    and thank you for the explanation about "defer to content translation setting".
    i'm closing this issue.

Production build 0.71.5 2024