Recognise subpaths of urls ending in /

Fixes #4