You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a couple cases recently users have reported the inability to select the Legacy Reader or Path Suffix paired URL structures and getting this notice:
There is a post, term, user, or some other entity that is already using the “amp” URL slug. For this reason, you cannot currently use the path suffix or legacy reader paired URL structures.
So we just need to amend the notice with a list of what the conflicts are. This can be done in an unordered list.
The REST API endpoint should return the taxonomy slug, taxonomy translated name, and term edit link for each entity if available. When an option says “unavailable due to slug conflict” there should be a clear reference to the above notice.
westonruter
changed the title
Indicate what entity(s) are blocking the use of the paired endpoint suffix
Entity(s) causing path suffix conflicts are not indicated
Jun 11, 2021
I created a post, page, category, tag, and user all with the amp slug. I also registered a taxonomy and a post type with the amp slug. And I also registered an amp rewrite endpoint. I then got the message as expected, without the ability to select path suffix or legacy Reader structures:
Feature description
In a couple cases recently users have reported the inability to select the Legacy Reader or Path Suffix paired URL structures and getting this notice:
We don't expose the conflict in the UI at present.
For example, if I add this plugin code:
The settings screen shows:
The conflict is not shown, but the conflicts are returned in the API response.
In the console doing:
Results in:
So we just need to amend the notice with a list of what the conflicts are. This can be done in an unordered list.
The REST API endpoint should return the taxonomy slug, taxonomy translated name, and term edit link for each entity if available. When an option says “unavailable due to slug conflict” there should be a clear reference to the above notice.
amp-wp/src/PairedRouting.php
Lines 337 to 390 in 3bb15f3
Also, I just realized that we should also check if the
amp_get_slug()
exists amongWP_Rewrite::$endpoints
and indicate that as another conflict.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered: