Fix route problems when no trailing slash is presented