Router fixes: empty string URL and multiple trailing slashes