added base url and resuce for _herf nil