Skip to content

[404 Monitor] 404 Monitor doesn’t include the language slug created by TranslatePress #311

@orezeno22

Description

@orezeno22

Describe the bug
When capturing 404 errors, it doesn't capture the language slugs created by TranslatePress plugin, although still captures the language slugs that are not defined in TranslatePress.

For example:

  • TranslatePress defines two languages: Vietnamese ( / ), and English ( /en/ ).
  • 404 Monitor doesn't capture 404s that has /en/ slug.
  • 404 Monitor does capture 404s that has other slugs, like /ja/.

There was a similar issue that reported to be fixed. But at this time, I confirm this issue is still going on.

To Reproduce
Steps to reproduce the behavior:

  1. Go to a non-existing URL, like example.com/en/article-one → It will return 404.
  2. The 404 Monitor captures that 404 as: /article-one (lacking the /en/ part).
  3. Go to another non-existing URL, like example.com/ja/article-one → It will return 404.
  4. The 404 Monitor fully captures the 404 as: /ja/article-one.

Expected behavior
404 Monitor should captures all languages created by the TranslatePress plugin.

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions