WPML

Overview of the Issue

When you visit a post or a page that contains non-ASCII characters in its slug and respectfully, in its URL, a constant redirect is happening.

This is happening because of the way such characters are handled – they need to be properly converted and escaped so that they can be used as URL.

In order for this to be done, the urlencode (opens in a new tab) and urldecode (opens in a new tab) functions are used.

You can read more about this topic on the following two links:

Workaround

This issue is fixed. Updating to the latest version solves it on your site, so you only need this workaround if you can’t update yet.

  1. Go to wp-content/sitepress-multilingual-cms/classes/query-filtering/class-wpml-query-parser.php at line 421.
  2. In the is_permalink_part_of_request(), replace
    return substr( trailingslashit( $request_uri ), 0, strlen( $permalink_path ) ) === $permalink_path;

    with this:

    return substr( trailingslashit( urldecode( $request_uri ) ), 0, strlen( $permalink_path ) ) === $permalink_path;

Still Seeing This Issue?

If updating doesn’t fix it, ask a support question and we’ll look into it with you.

Ask a support question

All known issues