fix self link by using req.getHref()