netgen / TagsBundle

Netgen Tags Bundle is an eZ Platform bundle for taxonomy management and easier classification of content, providing more functionality for tagging content than ezkeyword field type included in eZ Platform kernel.
https://netgen.io
GNU General Public License v2.0
48 stars 43 forks source link

Invalid HTML generated for tag links with `ez_render_field()` #141

Closed patrickallaert closed 2 years ago

patrickallaert commented 2 years ago

If a tag is composed of more than one word, example "Boost My Process", the above code:

{{ ez_render_field(content, "tags") }}

will render:

<a href="/tags/view/Boost My Process">Boost My Process</a>

Using an HTML validator like https://validator.w3.org/ would complain about the space with error:

Bad value /tags/view/Boost My Process for attribute href on element a: Illegal character in path segment: space is not allowed