Open enricobattocchi opened 11 months ago
Please inform the customer of conversation # 1130682 when this conversation has been closed.
In https://github.com/Yoast/wordpress-seo/issues/20341 we noticed the same issue occurs for the Tutor LMS CPT
Step-by-step reproduction instructions
Expected results When I click Assignments, I expect to be taken to the Assignments post type settings page When I click Lessons, I expect to be taken to the Lessons post type settings page When I click Quizzes, I expect to be taken to the Quizzes post type settings page
The URL loaded by Yoast SEO for the three post types Assignments, Lessons and Quizzes is the same: /wp-admin/admin.php?page=wpseo_page_settings#/post-type/lesson
A similar issue happens with the Directorist plugin https://github.com/Yoast/wordpress-seo/issues/20016
Please inform the customer of conversation # 1072770 when this conversation has been closed.
Issue merged from https://github.com/Yoast/wordpress-seo/issues/20016
Issue: Custom taxonomy tags added by Directorist plugin failed to open its respective SEO settings.
Step-by-step reproduction instructions
https://example.com/wp-admin/admin.php?page=wpseo_page_settings#/taxonomy/at_biz_dir-tags
Expected results The Tags and Categories taxonomy should have a unique URL under the SEO settings page like WordPress default tags and category.
Custom post type category slug: at_biz_dir-category https://example.com/wp-admin/edit-tags.php?taxonomy=at_biz_dir-category&post_type=at_biz_dir
Custom post type tag slug: at_biz_dir-tags https://example.com/wp-admin/edit-tags.php?taxonomy=at_biz_dir-tags&post_type=at_biz_dir
Please inform the customer of conversation # 996719 when this conversation has been closed.
Please inform the customer of conversation # 1072770 when this conversation has been closed.
Conversation # 1130682: Issue occurs with Paid Memberships Pro
Please inform the customer of conversation # 1134067 when this conversation has been closed.
Please inform the customer of conversation # 1136002 when this conversation has been closed.
Please inform the customer of conversation # 1177637 when this conversation has been closed.
What is the goal of this issue?
We currently use the rewrite slugs instead of the post type or taxonomy slugs to build the direct URLs to the relevant sections in the settings, e.g.
/wp-admin/admin.php?page=wpseo_page_settings#/post-type/rewriteslug
instead of/wp-admin/admin.php?page=wpseo_page_settings#/post-type/posttypeslug
. This can be a problem in some cases since the rewrite slug can change, so the URLs would change too; also, only the main slug is unique, so if a site admin registers a post type or a taxonomy that overrides the rewrite slug of a builtin type, the section for that content type is unreachable. This is already experienced by some users for taxonomies: https://github.com/Yoast/wordpress-seo/issues/20016What needs to be done to achieve the goal?
We need to update how the URLs are created to use the main slug and not the rewrite slug.
Does the issue still need UX or research?
Not really, we don't expect side effects (though we need to make sure to check this). Being totally on the backend side, there should not be any effect on the front-end/SEO side
If available: what are the tips for fixing the problem or possible solutions?
See above
Should documentation be added or updated for this change? and if so, where?
No.