• Resolved Pieter Bos

    (@senlin)


    Just discovered a little bug that outputs the wrong canonical URL on the secondary language of a site running WPML.

    For some reason the language parameter of the secondary language gets output twice:

    <link rel="canonical" href="https://explore-azores.eu/de/de/" />

    Running latest version of everything, please ask more details if needed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Pieter Bos

    (@senlin)

    Just noticed that this issue also has been reported two months ago already in correlation with qTranslate.

    The author’s suggestion to turn off canonical URLs is not an option. Can a solution to this issue be expected soon?

    Thread Starter Pieter Bos

    (@senlin)

    Downloaded the Github version (2.7.0) and installed it and that has solved the issue.

    Perhaps an idea to update the sync the WP Repo with Github as I now get the update notice for 2.7.3 which clearly has this bug (again)?

    • This reply was modified 7 years, 10 months ago by Pieter Bos.
    • This reply was modified 7 years, 10 months ago by Pieter Bos.
    Plugin Author Sybre Waaijer

    (@cybr)

    Hi Piet,

    I’m sorry for the inconvenience!

    The version you grabbed from GitHub is actually 2.8.0 beta, which indeed includes WPML and qTranslate X specific fixes.

    I still have a difficult time reaching out a structured beta testing plan with WordPress’ plugin repository system.
    I also thought it was most easy for having the version stuck at a lower version than the stable version available at www.remarpro.com, so when something goes wrong, you can easily go back to the stable WP repository version.

    Maybe, as a fellow plugin developer, you have some insight on this matter? Cheers!

    Thread Starter Pieter Bos

    (@senlin)

    Hi Sybre,
    Thanks for your reply.

    The version you grabbed from GitHub is actually 2.8.0 beta, which indeed includes WPML and qTranslate X specific fixes.

    Ah, that explains it then ??

    There are different ways to approach this. Some developers keep a beta version separate from the master on Github. I must say that it is very easy to get mixed up between version, especially I think as a single developer.

    You could do it the way you do it now, but then I would update the main plugin and readme files to reflect it is the upcoming beta version.

    Yet another idea is to use Andy Fragen’s Github Updater plugin to keep the WP version automatically in sync with the Github one.

    Hope this helps and thanks for fixing the issue!

    Cheers,
    Piet

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi Piet,

    Yes, I used to track different branches… until I discovered that GitHub can easily render them incompatible: https://github.com/sybrew/the-seo-framework/network
    Note the massive gap I had to flatten from Feb 2016 to May 2016.
    I then steered away from it until I become more comfortable with GitHub.

    Marking it for beta in the WP dashboard is something I’ll start doing from 2.8+ ?? Thanks for the tip. It’s now at 2.7.99 for internal compatibility reasons.

    I still believe WordPress should utilize a “Beta Tester for Plugins” plugin to which we can commit. But that’s just a wish for now.

    Thanks again for your insights ?? They’re much appreciated!

    • This reply was modified 7 years, 10 months ago by Sybre Waaijer.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘wrong Canonical URL with WPML’ is closed to new replies.