added check for absolute URL