remove parent path part of resources link: make it a host-relative link