-
Notifications
You must be signed in to change notification settings - Fork 71
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
Bug: Can't specify pathauto pattern for corporate body terms #1470
Comments
Also occurs on a different instance running Drupal 8.7.12. It also occurs if you try to apply a pathauto pattern to tags vocabulary. |
Doing some digging via xdebug on It looks like Pathauto, CTools, and Context might be implicated here. |
Just stood up a test instance on simplytest.me with pathauto and context and can add patterns to tags vocab plus a vocab I added to the site. |
A bit more digging. Submitting the pathauto pattern for taxonomy term flows via But in the Pathauto pattern admin UI |
Ok, I think I might know the problem. Islandora defines an entity bundle condition in This causes weirdness, e.g. Islandora conditions operation in the context of defining pathauto patterns. @dannylamb Can you check my thinking here? I think |
So I've looked into this and I think going forward it's probably best to just use the So I did an audit, and we're only using our plugin in one spot in islandora_defaults, and that's in the all_media context. That could be easily replaced with the But are there any other places where conditions get exported? If there's too much leakage, it may be best just to rename and then deprecate it, urging people to use ctools instead. Open to thoughts on this one. |
That seems like the safest path forward until we fully understand the implications of this move, especially since the release is already late. |
Resolved with Islandora/islandora@7b24912 and Islandora/islandora_defaults@7963c98 |
Thanks @whikloj |
With a reasonably fresh playbook instance, if I visit
/admin/config/search/path/patterns/add
and try and specify a pathauto pattern for acorporate_body
term, e.g. pattern=/agent/[term:name]
, when I submit the form I get "The website encountered an unexpected error. Please try again later." and dblog shows:"Drupal\Component\Plugin\Exception\PluginNotFoundException: The "entity_bundle:taxonomy_term" plugin does not exist. Valid plugin IDs for Drupal\Core\Condition\ConditionManager are: request_path_exclusion, entity_bundle, group_type, media_has_term, file_uses_filesystem, node_had_namespace, parent_node_has_term, media_uses_filesystem, node_is_islandora_object, node_has_parent, content_entity_type, node_is_published, media_is_islandora_media, node_has_term, media_has_mimetype, language, node_type, current_theme, request_path, user_role in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /var/www/html/drupal/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php)."
Has anyone else tried this?
The text was updated successfully, but these errors were encountered: