For normal transactions sent through the HIM from a client, links in the response body can be rewritten to match the request URL, based on Channel configuration.
When the same transaction is rerun, the links in the response body for the rerun transactions are not being rewritten.
This issue is verified on the current version of master (v5.2.0)