Support URLs lacking a trailing slash

Towards #436. This is not a great solution, because now there are two
URLs for every one of these pages, one with a trailing slash and one
without. But it's a step in the right direction.