Not compatible with translatepress | WordPress.org

[ad_1]

Plugin Author
malihu

(@malihu)

Hi,

The trailing slash at the end of the French URL is not valid. The URLs should be and it should work.

Does the URL work when the plugin is deactivated?

Can you post your page/site URL so I can check it?

Thank you @malihu,

You’ve put me on the right track, it was the end slash that was causing the problem, I’ve corrected it with this custom filter:

add_filter('trp_get_url_for_language', 'trpc_remove_end_slash', 10, 6);
function trpc_remove_end_slash($new_url, $url, $language, $abs_home, $lang_from_url_string, $lang_url_slug){
 return untrailingslashit($new_url);
}

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer