Hack remove domain so we can work with both https http using relative paths.