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

Unable to select the user within the 'Site representation' under First time configuration when the permalink structure is set as "Plain" #21836

Open
3 of 6 tasks
DenisBalan opened this issue Nov 19, 2024 · 2 comments

Comments

@DenisBalan
Copy link

DenisBalan commented Nov 19, 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

To Reproduce

Step-by-step reproduction instructions

  1. install fresh wordpress 6.7
  2. install yoast seo plugin 23.8 (latest) from marketplace
  3. nothing more

Expected results

  1. Users list populated

Actual results

  1. Users list is empty
    image

Resolution

  1. The bug is reproduced only when url structure is by default, ie. query "https://mysite.com/wordpress/?p=123"
  2. After changing in settings permalink to %postname%
  3. The bug doesnt reproduce itself anymore.

Technical details

  1. When permalink is "?p=1"
    endpoint for users is
    https://mysite.com/wordpress/index.php?rest_route=/wp/v2/users?per_page=20 (which doesnt work, 404 is returned)
  2. When permalink is %postname%
    endpoint for users is
    https://mysite.com/wordpress/wp-json/wp/v2/users?per_page=20 (works well)

Solution inspired by a stackoverflow answer: https://stackoverflow.com/a/46326542/1067123

Im saying about requested endpoints from network tab of the page https://mysite.com/wordpress/wp-admin/admin.php?page=wpseo_dashboard#/first-time-configuration

Screenshots, screen recording, code snippet

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

  • Which browser is affected (or browsers):
  • Chrome
  • Firefox
  • Safari
  • Other:

Used versions

  • WordPress version: 6.7
  • WordPress Theme: default
  • Yoast SEO version: 23.8
@josevarghese
Copy link
Contributor

Hi @DenisBalan

Thanks for using the Yoast SEO plugin and for creating the issue. I am able to reproduce it on my lab site with the Plain permalink.

Kindly please note that our plugin recommends using the permalink structure with a postname; more details here as it will make the URLs SEO friendly.

Even though the issue persists within the First-time configuration when Plain permalink is selected, as a workaround, you can navigate to the Yoast SEO > Settings > General > Site representation > select Person and can select the user to complete this configuration.

@josevarghese josevarghese changed the title BUG - Fresh install, wrong user endpoint Unable to select the user within the 'Site representation' under First time configuration when the permalink structure is set as "Plain" Nov 19, 2024
@josevarghese
Copy link
Contributor

Internal Slack conversation: https://yoast.slack.com/archives/C01NCRHHN30/p1732018141227829

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

No branches or pull requests

2 participants