Fix for breadcrumbs

Retain the trailing slash when stripping index from the page name.

This should fix the final oddities with the breadcrumb links.