WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
[resolved] Same post in different URLs (16 posts)

  1. Baz11
    Member
    Posted 1 year ago #

    There is post with URL site.com/en/post1.html. (English is not default language).
    URL Site.com/post1.html returns the same post in English, but with taxonomy in default language. Canonical URL of this site.com/post1.html is still site.com/en/post1.html.

    http://wordpress.org/extend/plugins/polylang/

  2. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    I reproduce the bug if I manually type "site.com/post1.html" in the browser address bar. But is there somewhere a link that leads to "site.com/post1.html"?

  3. Baz11
    Member
    Posted 1 year ago #

    I have found this bug when manually typed Url in adress bar too. Any other links I didn't found.

  4. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    The new development version should now solve this.
    http://downloads.wordpress.org/plugin/polylang.zip

  5. Baz11
    Member
    Posted 1 year ago #

    It works as redirection from site.com/post1.html to site.com/en/post1.html?
    Most of post works good, but in some cases it returns cycle redirection when I try to go to site.com/en/post1.html.
    This is an example http://pblog777.16mb.com/en/post-3-2.html

  6. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    Is there something special with this post compared to the other which work

  7. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    I added a protection against chained redirections similar to what is done by WordPress in such case.
    http://downloads.wordpress.org/plugin/polylang.zip

  8. Baz11
    Member
    Posted 1 year ago #

    In 0.9.5 it works :!)

  9. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    Yes but it introduced a new bug :(

    "/category/name/page/2" redirects me (301 - permanentely) back to "/category/name/"

    I totally reworked this in the current development version (0.9.5.5)
    http://downloads.wordpress.org/plugin/polylang.zip

  10. Baz11
    Member
    Posted 1 year ago #

    I have tested 0.9.5.5.
    It works :)

  11. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for your test!

  12. Baz11
    Member
    Posted 1 year ago #

    :)

  13. Baz11
    Member
    Posted 1 year ago #

    It is an interesting thing. For post in default language (for default language prefix not used) site.com/post1.html URL address site.com/en/post1.html - still returns this issue. For post in non-default language (with prefix) such as site.com/en/post2.html and URL address site.com/post2.html redirection works correctly.
    Canonical URLs in all cases - are correct.
    Version 0.9.7. tested.

  14. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry. I am not sure I understand what is exactly the issue.

    With permalink : /%postname%.html
    If en is the default language, and I enter site.com/en/post1.html, it returns 404

    With permalink : /%postname%
    If en is the default language, and I enter site.com/en/post1, it is redirected to site.com/post1

    Is it this issue you are referring to?

  15. Baz11
    Member
    Posted 1 year ago #

    Permalink : /%postname%.html
    Default language - not English
    Prefix used only for non-default languages.
    site.com/post1.html - post in default language
    site.com/en/post1.html - still returns post in default language but with English taxonomy.

    site.com/en/post2.html - post in non-default language (English).
    site.com/post2.html redirect to site.com/en/post2.html - it is right redirection.
    Hm... May be it is impossible to do right redirection in all cases...

  16. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    Now I understand. I did not cover this case. Could you try with the new development version (0.9.8.1)?
    http://downloads.wordpress.org/plugin/polylang.zip

    And yes you are right, I will probably not cover all cases.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.