[BUG] Trailing commas in meta keywords when no tags or no keywords in metadata #618
Open
1 of 3 tasks
Labels
bug
Well, it shouldn’t be doing that. Let’s fix it!
Mandatory Step
Recommended Step
Description
Trailing commas appear in the content of the meta-keywords tag, whenever no tags or no keywords are set.
If you define *no keywords then a trailing comma will appear at the end.
Likewise when metadata has no tags, a trailing comma appear at the end of the
When both, keywords and tags, are missing, trailing commas appear at both sides:
While the expected outcome would be:
To reproduce it create a page with category but no tags or no keywords and generate the website. Then look at the generated meta-keyword tag.
The problem is that when there is no tags or no keywords, instead of a comma separated string
'tag'
or'tag1, tag2'
, an empty string''
is joined. The solution could be generating lists of keywords, tags, and the category, adding them as a single list and then applying the join.The text was updated successfully, but these errors were encountered: