Swapped url relative/absolute check around