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

rel="next" attribute in Shop page with no pagination #21324

Open
2 of 11 tasks
maybellyne opened this issue Apr 18, 2024 · 1 comment
Open
2 of 11 tasks

rel="next" attribute in Shop page with no pagination #21324

maybellyne opened this issue Apr 18, 2024 · 1 comment
Labels
compatibility: WooCommerce Possible conflict with the Woocommerce plugin.

Comments

@maybellyne
Copy link

maybellyne commented Apr 18, 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 the WooCommerce Shop page is set to display only categories, and you have a few that shouldn't result in pagination, we add the rel="next" attribute. However, there's no real /page/2/.

To Reproduce

Step-by-step reproduction instructions

  1. Create a few product categories
  2. In WordPress > Appearance > Customize > WooCommerce > Product Catalog > Shop page display, choose Categories

Expected results

  1. Categories are displayed on the Shop page
  2. rel="next" attribute is not added since there are only a few categories that don't warrant pagination

Actual results

  1. rel="next" attribute is added with non-existent /page/2/

Screenshots, screen recording, code snippet

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

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:

Used versions

  • Device you are using:
  • Operating system:
  • PHP version:
  • WordPress version: 6.5.2
  • WordPress Theme:
  • Yoast SEO version: 22.5
  • Gutenberg plugin version:
  • Elementor plugin version:
  • Classic Editor plugin version:
  • Relevant plugins in case of a bug: WooCommerce v8.8.2
@maybellyne
Copy link
Author

@josevarghese josevarghese added the compatibility: WooCommerce Possible conflict with the Woocommerce plugin. label Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility: WooCommerce Possible conflict with the Woocommerce plugin.
Projects
None yet
Development

No branches or pull requests

2 participants