- Status
- Resolved
- Resolved in
- 4.2.7
Overview of the issue
If you have a category that has a slug that consists entirely of numeric characters this can lead to a redirection loop.
For example, http://example.com/category/1234/ might do a 302 redirect to itself.
Workaround
Edit the class-wpml-query-parser.php file found in the ../wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering folder.
Find the maybe_redirect_to_translated_taxonomy() function.
You should change the following code:
if ( $translated_slugs && $slug !== $translated_slugs[0] ) {
to:
if ( $translated_slugs && $slug != $translated_slugs[0] ) {