Frontpage (View as Page) url-alias's are different after upgrading.

Created on 11 April 2023, over 1 year ago
Updated 29 April 2023, over 1 year ago

Problem/Motivation

The links provided by the switcher do not show as / if a specific homepage is set in the basic settings of the site after updating to version 4.0.3 from 4.0.0 on Drupal 10

Steps to reproduce

Fresh install of D10 then set the homepage to a different view (and so path) from the basic settings and place the language switcher from block layout.

Current Summary

see comment 7 & 8

💬 Support request
Status

Active

Version

4.0

Component

Documentation

Created by

🇮🇹Italy paulsally

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

Comments & Activities

  • Issue created by @paulsally
  • Status changed to Closed: cannot reproduce over 1 year ago
  • 🇨🇦Canada SKAUGHT

    your two pics v4.0.3 and v.4.0.0. do appear to me to show 2 language links (showing same links). please reverify and if you can re-clarify you steps please.

    In general, it is best to show the entire screen (and url bar of your broswer) to help me help you. thanks..

  • Status changed to Postponed: needs info over 1 year ago
  • 🇮🇹Italy paulsally

    Hi @SKAUGHT,

    Thanks for your reply. Sorry I wasn't clear.

    Both images, v4.0.3 and v4.0.0, are taken from the homepage. This website consists of just one page that shows the results of a search action performed by the user (initially the last three results when no search has been performed yet).

    The view that shows the results has path "/search-sc". Maybe it could have been used the default frontpage view for this but it was not clear at the time if there might have been some other content to be shown there. So what was done was modifying the page to be show as frontpage in the basic settings.

    Version 4.0.3 of the Dropdown Language module takes me to the page www.example.com/search-sc whereas the version 4.0.0 takes me to / which is the result I want because I don't want the user to navigate other pages than the homepage and I don't want that url to be shown.

    Maybe I'm missing some settings... For the moment I reverted to the 4.0.0 version.

    This is the screenshot of the homepage with the exposed filters to perform the search and the dropdown language block.

    Thanks a lot for your time!

  • 🇨🇦Canada SKAUGHT

    "The view that shows the results has path "
    do you mean your front page "/search-sc" is a View generated page (admin/structure/views)?

    if yes: it is simply true the this module does not have any specific "plugin-into-views". known general issues/concerns for module

    1. ✨ Hide untranslated for View Pages. Postponed
    2. 🌱 [PLAN] Need some kind of plugin for discovery of entity types and linking logic for non EntityInterface Active

    basic workaround is to make your front page a node and block View Blocks on it. "everything is a node"

  • 🇮🇹Italy paulsally

    Yes, /search-sc is a View Page with path /search-sc.

    Ok, I might think to create a node and duplicate the View Page into a View Block and place it on the node.

    What is strange, though, is that v4.0.0 of the module works without any workarounds. So, for the moment is my quickest option.

    Thanks!

  • 🇨🇦Canada SKAUGHT

    @paulsally
    I didn't ask this before either --> this module is the ONLY thing you've updated for this difference?
    I am as curious to understand this difference if you this maybe related to a core update. i would not expect this sort of change otherwise..

    overall, will keep this issues in mind when next more specifically able to review code-changes from minor updates.

  • Status changed to Needs review over 1 year ago
  • 🇨🇦Canada SKAUGHT

    Am thinking now this is a point of documentation.

  • 🇮🇹Italy paulsally

    I didn't ask this before either --> this module is the ONLY thing you've updated for this difference?

    I ran a general composer update which updated many modules and core from 10.0.4 to 10.0.7.
    In fact, I still have the terminal window open, so I can attach it for you to review.

    What I seem to experience, though, is that if I revert only Drowpdown Language to version 4.0.0 the alias url is different. This is what I've been doing and that seems to result in having /search-sc as path (4.0.3) or / (4.0.0) for the English or /it/search-sc and /it for Italian.

    I guess this happens only if a different View Page from the default Frontpage View is set in the Basic Settings of the website.

    I tried installing the -dev version and it seems to behave the same as v4.0.3.

    I agree with you that it seems a bit strange for a minor version update do change something like a core functionality of the module. Am I making some silly mistake??

  • 🇮🇹Italy paulsally

    Hi @SKAUGHT

    Did you find any reason for the different behaviour of version 4.0.0 from version 4.0.3? Because today I tried again to install the dev version and I still experience the fact that the links to the homepage show the extra path of the custom view specified as new frontpage in the basic settings.
    I would like to update to the newest version but for the moment I had to revert to 4.0.0.

    Thanks!

  • Status changed to Active over 1 year ago
Production build 0.71.5 2024