Fixing an issue with # hrefs in the router...

...introduced by a recent fix of another bug.