I have a section where most entries have a category assigned to them, but a few ones have no category at all.
I need help how to connect these entries' URLs to my entry template.
So far I used a route to catch these cases and assign them to the entry template:
"Route URLs like section/slug to template /section/_entry."
Then I realised that this also catches all entries that have a category, so both these URLs would be valid: /section/category1/slug1 and /section/slug1
But all entries with a category assigned to them should raise a 404 if their category is missing from the URL.
This looks like a common scenario, but so far I only found a solution where those entries are given a default category.
How can I handle my case?