[WPML] Removing trailing slash from Language directories (ok)
https://wpml.org/forums/topic/removing-trailing-slash-from-language-directories/


Link: wp-content/plugins/sitepress-multilingual-cms/classes/canonicals/class-wpml-canonicals-hooks.php
) I think this is a known issue, can you please check next quick fix:
Please make a backup before proceeding.
Set the permalink without trailing slash /%postname% and also apply the quick fix in the file wp-content/plugins/sitepress-multilingual-cms/classes/canonicals/class-wpml-canonicals-hooks.php:
On line number 56 :
1
if ( 0 !== strpos( $actual_uri, '/' . $lang . '/' ) ) {
replace the above code with the one below
1
if ( 0 !== strpos( $actual_uri, '/' . $lang ) ) {
Source: https://wpml.org/forums/topic/remove-trailing-slash-from-the-home-page/
Link: ok
PreviousFix Sublime Text Does Not Autocomplete (ok)NextHướng dẫn kích hoạt và thiết lập Multisite Network trên WordPress 1 (ok)
Last updated
Was this helpful?