• Resolved chugeno

    (@chugeno)


    I had my website done, I translated it with the TranslatePress plugin in two languages, this plugin creates a new slug to separate the languages for example

    miweb.com/post1 would be the original slug and miweb.com/en/post1 would be in English and miweb.com/es/post1 would be in Spanish, this makes that when exporting the static site all the links between pages are broken. Is there a way to fix it? thank you very much! I leave the link to the plugin just in case. Tremendous your plugin to export the static site. Thanks!

    https://translatepress.com/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author patrickposner

    (@patrickposner)

    Hey @chugeno,

    thanks for reaching out!

    That is indeed only handled by the pro version of Simply Static.

    We implemented a modified crawler that validates the meta tags added by TranslatePress (and other multilingual plugins) and automatically adds these pages to the export.

    However, you might get at least some progress on the issue by using the following code snippet:

    add_filter('ss_match_tags', function( $match_tags ) {
    $match_tags['link'] = array( 'href' );
    return $match_tags;
    });
    Thread Starter chugeno

    (@chugeno)

    Hi, thanks for the prompt reply, I understand q is a pro function seems fine for me to be able to maintain the plugin. I will try with the code to see if I can solve it.

    Greetings!!!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘TranslatePress’ is closed to new replies.