Strange GD CPT Category Multilanguage URL

This topic contains 6 replies, has 3 voices, and was last updated by  jotomas 4 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #530454

    jotomas
    Buyer
    Post count: 802

    Hello,

    When translating GD CPT categories with WPML I have found an strange problem.

    The CPT slug is:

    shopping in the main language CA.
    shopping-es in translated language ES.
    shopping-fr in translated language FR.
    shopping-en in translated language EN.

    The Category slug is like:

    fashion in the main language CA.
    fashion-es in translated language ES.
    fashion-fr in translated language FR.
    fashion-en in translated language EN.

    This means that a correct translated category URL would be, for example:

    https://inforoses.com/es/shopping-es/category/fashion-es/

    However, the “View” option of the category in the WP Dashboard goes to this URL:

    https://inforoses.com/es/shopping-es-es/category/fashion-es/

    which, of course, shows “404 Page Not Found” error.

    Then, it looks as, in these specific circumstances, an additional “-es” is incorrectly added to the CPT slug.

    I look forward to your reply.

    Thank you very much once again for your help.

    Best regards.

    #530456

    Alex Rollin
    Moderator
    Post count: 27815

    Those look like two urls in the links you are making.
    I cannot find them on your site.

    /es/servicios/category/movilidad/

    would be

    /es/servicios/category/movilidad-es/

    #530463

    jotomas
    Buyer
    Post count: 802

    Hi Alex,

    Thank you very much for your response.

    I do not understand what you mean.

    Please, try the URL I mentioned of the “Fashion” category archive page of GD CPT “Shopping”:

    https://inforoses.com/es/shopping-es/category/fashion-es/

    There was not any listing in this category, so I have just added a test listing.

    The problem is that the “View” option of the category in the WP Dashboard (screenshot attached) goes to this URL:

    https://inforoses.com/es/shopping-es-es/category/fashion-es/

    with the incorrectly duplicated “-es” in the GD CPT slug.

    The same happens with the other translated languages FR and EN.

    And now I have just found that switching language from the language selector in the main menu, also adds the duplicated language slug.

    I do not know if this issue could be related to this:

    https://wpgeodirectory.com/support/topic/problem-with-wpml-multilanguage-iii/

    I look forward to your reply.

    Thank you very much once again for your help.

    Best regards.

    #530467

    jotomas
    Buyer
    Post count: 802
    This reply has been marked as private.
    #530481

    jotomas
    Buyer
    Post count: 802

    Hi again,

    Just as a clarification, the issue seems to arise only when the GD CPT name includes the language slug. Then a second language slug seems to be added automatically in the “View” URL and also by the language switcher.

    I look forward to your news.

    Thank you very much once again for your help.

    Best regards.

    #530792

    Kiran
    Moderator
    Post count: 7069

    Hi jotomas,

    Issue has been fixed. Please check and let us know.

    Thanks for spotting.

    Kiran

    #530803

    jotomas
    Buyer
    Post count: 802

    Hi Kiran,

    Thank you very much for your response.

    I have checked and it looks as if the issue has been solved. The URLs are now correct in the Category Archive Page Preview link and also from the language switcher in the main menu.

    Thank you very much once again for your help.

    Best regards.

Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket