• Resolved freeforus

    (@freeforus)


    Hi,

    I figured out how to translate my pages and set them to keep the original slug, and only add the language code in the beginning.

    For example domain.com/post will turn to domain.com/es/post

    I thought I set it up correctly but now the translated post becomes “domain.com/es/post-2”

    Why is that?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author penyaskito

    (@penyaskito)

    What happens if you go to “domain.com/es/post”? I’m guessing that slug is already used, that’s why -2 is appended.

    Thread Starter freeforus

    (@freeforus)

    Hi, thanks for the reply.

    I just found out that when a translation is ready for download, it creates a new post or page, and that’s why it gives the same URL but with a “2”.

    I don’t know what I messed up to get this setting. I used the plugin on another blog, and there it works fine. It translates the slug too, tho which is not ideal for me, but it’s ok.

    Now my main goal is to figure why the plugin creates a separate copy of the post for every translation. Is this easy to fix?

    Thanks!

    Plugin Author penyaskito

    (@penyaskito)

    That’s inherited from Polylang, not really a Lingotek issue. Looks like this is covered in https://polylang.pro/doc/can-posts-or-terms-share-the-same-url-slug-across-translations/

    If that doesn’t work for you, I’ll recommend you to create an issue in the Polylang project.

    Hope this helps!

    Thread Starter freeforus

    (@freeforus)

    Thanks, @penyaskito!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Number added to URL slug’ is closed to new replies.