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 showing

    Quant page info not 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

Comments

Kristen Pol created an issue. See original summary.

kristen pol’s picture

Adding screenshots.

kristen pol’s picture

Issue summary: View changes

Resizing.

kristen pol’s picture

Status: Active » Needs review

kristen pol’s picture

Adding credit.

kristen pol’s picture

Actually, this was part of another fix that was recently approved so will get it merged as part of that:

https://github.com/quantcdn/drupal/pull/232

kristen pol’s picture

Status: Needs review » Reviewed & tested by the community

Merged in GitHub. Will sync to d.o repo.

kristen pol’s picture

Assigned: kristen pol » Unassigned
Status: Reviewed & tested by the community » Fixed

Synced GH to d.o repo so fix is in the dev branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.