Default home page info not shown if default language has no language prefix

Created on 22 July 2024, 4 months ago
Updated 5 August 2024, 3 months ago

Problem/Motivation

If you have a multilingual site with the home page without a language prefix and you have the "page info" configured to show, the default home page won't show any info if there is no language prefix set.

Steps to reproduce

  • Install Drupal 10 with Umami profile
  • Install and configure quant_api and enable "Page Info" setting
  • Sync content to Quant and ensure the home pages are there
  • Go to the English home page in Drupal
  • You will see the page info shows the static Quant info in the block
  • Go to /admin/config/regional/language/detection/url
  • Remove the language prefix for English and save
  • Go back to the English home page in Drupal
  • Result: Page info does not show up like before
  • Expected: Page info should look the same for default language home page with or without a language prefix
  • Quant page info showing

    Quant page info not showing

    Proposed resolution

    Update the code to handle case where there is no language prefix.

    Remaining tasks

    • Update code
    • Review and test
    • Commit :)

    User interface changes

    Page info will show up properly on the default home page when there is no language prefix configured.

    API changes

    Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

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

Comments & Activities

Production build 0.71.5 2024