Fixes relative/absolute URL issue