fix(urls): make it work with server url prefix

on resources endpoint / urls are returned absolute not relative
to server root url. now we parse server url setting and use only
protocol and host part when combined with returned href.