• Resolved mireille76

    (@mireille76)


    Hi,

    I have a multilingual site with polylang.
    The default, english, “add listing page” has url en/add-listing
    The corresponding french page (id=87) has url fr/ajouter-listing (contains shortcode [directorist_add_listing])
    These pages both work fine.

    But when a user tries to edit a listing in the french frontend, after clicking on the edit button, it is redirected to en/add-listing/edit/465/ which means that he has to edit the listing in english.
    I would expect him to be redirected to fr/ajouter-listing/edit/465/
    I have already fount out that I can redirect to this link by modifying the get_edit_listing_page_link function like this
    if (pll_current_language() == ‘fr’ ){
    $page_id = 87;
    }else{
    $page_id = get_directorist_option(‘add_listing_page’);
    }

    but this page : fr/ajouter-listing/edit/465/ does not exist (error 404)

    My question is : does anyone know how or where the en/add-listing/edit/listing-id/ page is generated ? If I know this I can maybe also create the fr/ajouter-listing/edit/listing-id/ page .

    Thank you very much in advance for any help,
    Mireille

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

    (@rashed848)

    Hello mireille76 !

    Thank you for reaching out to us with this concern regarding listing editing in the French frontend of your multilingual site using Polylang. We understand the importance of resolving this matter promptly.

    It appears that the issue is related to the redirection of the edit link to the English version instead of the corresponding French version.

    To determine the exact issue, we need to inspect your site. This is why, we recommend you to reach us to our technical support channel through our website. Our dedicated support team will promptly investigate the matter and provide a comprehensive solution tailored to your specific configuration.

    Thank you for your patience and cooperation in resolving this matter. If you have any further questions or concerns, please don’t hesitate to reach out.

    Best regards,

    • This reply was modified 1 year, 2 months ago by rashed848.
    • This reply was modified 1 year, 2 months ago by rashed848.
    Thread Starter mireille76

    (@mireille76)

    Thank you rashed848 ,

    As my website is already rather complex, I will rebuild a website with only the relevant plugins and then contact the technical support channel.

    Best regards,
    Mireille

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“edit listing page” in multilingual site (polylang)’ is closed to new replies.