• Resolved mvpalves

    (@mvpalves)


    Hii!

    I’ve been using translatepress for a long time, but I need help with the automatic translation.

    If a user is in a Spanish page it will add the subdirectory automatically: site.com/es/content
    And all the links inside this /es/ page that are internal links will be translated and also added the subdirectory to it. How can I disable this? I mean, how can I disable some links from receiving the subdirectory based on the current page?

    My actual problem:
    I have a translated page that has the subdirectory added to it (e.g site.com/es/content) and I have a internal link there that is a redirect link, that must not have the subdirectory to it, so the internal link must always be site.com/myRedirect, not site.com/es/myRedirect.

    How can I make it work? I tried the options in the advanced tab, but it didn’t work.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello there,

    Thank you for reaching us!

    Check if you have enabled the “Force language in custom links” feature enabled from Settings->TranslatePress->General tab.

    If you have it enabled, please disable it.

    If this won’t solve your problem,you can use the “Do not translate certain paths” feature from the Advanced tab->Exclude functions and add the link you want to be excluded.

    Like this, the page will be displayed in the default language and not on the secondary one.

    Let me know about this!

    Kind Regards,

    Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello there,

    Since 5 days have already passed without getting any reply from you, I will mark this thread as “Resolved”.

    Have a great day!

    Kind Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disallow translated URLs (subdirectory)’ is closed to new replies.