getDomain and getPath works.