Fix bitbucket

The upgrade the Aspen 0.26.x broke `/on/bitbucket/foo/`. Here's a test and a fix.