• Resolved thomlander

    (@thomlander)


    Hey everyone,

    I am having an issue related to the Multisite Language Switcher that I cant seem to figure out by myself.

    The issue that I am currently having is that there are links that come from the multisite language switcher that aren’t build correctly. In the <head> near the bottom there are 2 link tags that are from the multisite language switcher, where the link for the English link contains the Dutch slug instead of the English slug it is supposed to have.

    Which means that there is an link with /en/over-stibat/het-team/ instead of /en/about-stibat/the-team.

    is this something which is done by the function in functions.php? or is this something that happens in the actual plugin itself?

    I have checked the back end of the plugin in WordPress and everything looks in order. The English translations are filled in and the slugs are as well.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Dennis Ploetner

    (@realloc)

    Hey, I just checked them on your site and on my test-sites (they seem fine on my sites). Just to exclude that; could you go to the permalinks section of every site. You don’t need to do nothing, I would just like to have those permalinks refreshed.

    Thread Starter thomlander

    (@thomlander)

    Hey Dennis, Thanks for your reply!

    I have refreshed the permalinks but the issue is still present in the <head> of the site.

    Copied faulty link from the <head> on https://www.stibat.nl/over-stibat/het-team:

    <link rel="alternate" hreflang="en" title="EN">

    should be:

    <link rel="alternate" hreflang="en" title="EN">

    which is supposed to be an slug related to the english page but the slug is getting filled in with the dutch slug. the weird part is that the correct link is present on the page but at an other location (in the nav-bar at the language switcher part). In this instance there is a mix up of slugs or something along those lines. Could this be related to the function or is this caused by something else? I did notice that the version of the plugin on the website is 2.5.7 and that there is a new version available. would it be worth it to update it and check if it fixed it or is the new version not something that influences this part of the plugin?

    Plugin Author Dennis Ploetner

    (@realloc)

    I believe you should install the latest stable version so we can see how to address this properly.

    Thread Starter thomlander

    (@thomlander)

    I have updated the plugin to 2.5.8 but the issue is still present in the <head> like i said in my previous post

    Plugin Author Dennis Ploetner

    (@realloc)

    Is this a normal post or page?

    Thread Starter thomlander

    (@thomlander)

    It is a cross link page, the cross link is an collection of people who work at the company.

    • This reply was modified 2 years, 2 months ago by thomlander. Reason: I thought it was a page until i found out it is a crosslink
    Plugin Author Dennis Ploetner

    (@realloc)

    This is quite unexpected behaviour of that part of the output. I can not reproduce it here.

    You can suppress the output (as a patch) by placing a filter in your theme’s functions.php for example:

    add_filter( 'mlsl_output_get_alternate_links_arr', function () { return []; } );

    Thread Starter thomlander

    (@thomlander)

    Sorry for the late response but this works, The links were not contributing to any functionality of the website so its no harm to surpress them. Thank you for the fix, Ill mark this ticket as resolved!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Multisite Language Switcher fills /en/ link with wrong language slug’ is closed to new replies.