Make tender URL replacement work for any domain

Set the TENDER_BASE_URL environment variable.