fix check for relative urls