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
Adding existing tags makes them display as slugs instead of names.
Probably a regression after #7822.
Details
Question
Answer
Relevant Bolt Version
3.7
Install type
Composer install
BC Break
yes?
PHP version
7.3
Web server
Nginx (latest)
For UX/UI issues
Chrome
Reproduction
Bug summary
After selecting an existing tag from the select suggestion list it is saved in the database with the slug in the place of name. After that Bolt displays tags slugs instead of full names. Adding new tags works fine.
Steps to reproduce
Create a content type eg.: articles with tags taxonomy like this
tags:
slug: tags
singular_slug: tag
behaves_like: tags
postfix: "Add some freeform tags. Start a new tag by typing a comma or space."
allow_spaces: true
listing_template: "tags.twig"
options: {}
This issue has been automatically marked as stale because it has not had recent activity. Maybe this issue has been fixed in a recent release, or perhaps it is not affecting a lot of people?
It will be closed if no further activity occurs, because we like to keep the issue queue concise and actual.
If you think this issue is still relevant, please let us know. Especially if you’d like to help resolve the issue, either by helping us pinpointing the cause of a bug, or in implementing a fix or new feature.
Yes, #7822 is probably the culprit. That PR changed the article form to identify tags using their slugs rather than their names, which is probably a good idea, but somewhere there is some code that wasn't updated to reflect this. Another challenge is that new tags don't have a slug until they're saved, which is probably the reason why names were used instead of slugs to begin with.
Adding existing tags makes them display as slugs instead of names.
Probably a regression after #7822.
Details
Reproduction
Bug summary
After selecting an existing tag from the select suggestion list it is saved in the database with the slug in the place of name. After that Bolt displays tags slugs instead of full names. Adding new tags works fine.
Steps to reproduce
articles
with tags taxonomy like thisExpected result
Tags should be always displayed with the original name
Actual result
After selecting a suggested tag it displays as a slug.
In the database it's also saved with incorrect name:
The text was updated successfully, but these errors were encountered: