Generate "next hop" href parameter in json. Use absolute image urls correctly when generating img tags.