Fixing `route.hash()` for custom routes