Fix checks for relative redirects

Maybe it's me doing something wrong, but I think calling `locatePath()` on the expected URL breaks checks on relative redirects.