change URLs with the same domain to absolute path without the domain