Fixes so the router doesn't work in #-links.