With a category in a page such as "Development Manager", when the category is linking in the metadata without being slugified. In the category page, however, the category name is slugified. This creates an inconsistency that prevents linking from the metadata link to the category.
To Reproduce
Steps to reproduce the behaviour:
Create a blog post with a category with a space: e.g. categories: [Tech, Development Manager]
Navigate to page.
Click on the "Development Manager" category link
Navigation takes you to the head of the Category page.
Expected behaviour
Expect the link / navigation to take you to the correct <h2> heading for the category ("Development Manager")
Summary
With a category in a page such as "Development Manager", when the category is linking in the metadata without being slugified. In the category page, however, the category name is slugified. This creates an inconsistency that prevents linking from the metadata link to the category.
To Reproduce
Steps to reproduce the behaviour:
categories: [Tech, Development Manager
]Expected behaviour
Expect the link / navigation to take you to the correct
<h2>
heading for the category ("Development Manager")Environment
Possible fix:
I've fixed this on my blog (https://jim-graham.net/categories) by adding
slugify
topost-meta.html