Category not loading template I have created a new Category on a Craft 3 website but it will not load the template specified. Have other categories all working fine and can't get this one working at all.

Category Config below



I expect this to load my template /pupil-of-the-month/index.html

As per the below image in my templates folder.



But when I click on the category url - http://local.domain.com/pupil-of-the-month/class/p1

I get a not found error - 

Template not found: pupil-of-the-month/class


Why is this Category not following the template specified in the admin settings?
The template path specified in the admin should point to a single file, not a directory.

index files are only loaded when the Craft router falls all the way through element URIs and starts to look in your templates folder—in your case, that would be local.domain.com/pupil-of-the-month.

I suspect the confusion lies in that the router does eagerly look inside a directory for index.* templates in some narrow cases (as stated above), but that the pattern is not adopted by Category/Section/Tag settings.

See the official Routing Docs for more information about the process Craft uses to resolve the template for a request.