Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Category Slugs Become Case-Sensitive When "Show the Categories Prefix in the Slug" is Unchecked #21395

Open
3 of 11 tasks
hillelstoler opened this issue May 20, 2024 · 1 comment
Labels

Comments

@hillelstoler
Copy link

hillelstoler commented May 20, 2024

  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened

When I uncheck the "Show the categories prefix in the slug" option in Yoast SEO (Yoast > Settings > Categories & Tags > Categories > Additional settings), the category slugs become case-sensitive (this is not normal for WordPress slugs).

For example, /tokyo/ works, but /TOkyo/ results in a 404 error, or category 'Abcdefg' would show correctly at mydomain.com/abcdefg/, but mydomain.com/ABCDEFG/ will either 404 or navigate to a different page (that has 'Abcdefg' in the title).

To Reproduce

Step-by-step reproduction instructions

  1. Uncheck the "Show the categories prefix in the slug" option in Yoast SEO
  2. Navigate to a category page
  3. Try the same URL with all-caps

Expected results

  1. All case variations of the slug should navigate to the category page (like the default WordPress behavior)

Actual results

  1. Lowercase only slug navigated correctly
  2. Mixed/Uppercase slugs navigate elsewhere (either 404, or redirected by WordPress)

Screenshots, screen recording, code snippet

If possible, please provide a screenshot, a screen recording, or a code snippet which demonstrates the bug.
image

Technical info

  • If relevant, which editor is affected (or editors):
  • Block Editor
  • Gutenberg Editor
  • Elementor Editor
  • Classic Editor
  • Other:
  • Which browser is affected (or browsers):
  • Chrome
  • Firefox
  • Safari
  • Other: Browser does not appear to be relevant here

Used versions

  • Device you are using: PC
  • Operating system: Windows 10
  • PHP version: 7.4.33 (Supports 64bit values)
  • WordPress version: 6.5.3
  • WordPress Theme: Custom (also tried with default theme, and the issue persists)
  • Yoast SEO version: 22.7
  • Gutenberg plugin version:
  • Elementor plugin version:
  • Classic Editor plugin version:
  • Relevant plugins in case of a bug:
@laurasacco
Copy link

Please inform the customer of conversation # 1136109 when this conversation has been closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants