- Issue created by @dcam
I noticed this problem for the Layout styleguide plugin. The layout elements are grouped by the layouts' category
as defined in a layout.yml
file. That name is inserted into the anchor names and the element ToC links as-is, with no verification of uniqueness or reformatting. So given a layout category named "Columns: 1" you end up with anchors like:
<a name="Columns: 1"></a>
...and ToC links like:
<a href="https://mysite.ddev.site/admin/appearance/styleguide#Columns: 1">Columns: 1</a>
The colons and spaces are invalid characters, causing validation errors to be thrown which is how I found the problem.
Run all element keys through Html::getUniqueId()
in StyleguideController
.
Active
2.0
User interface