With this MR we request and use the current domain the TextAPI is served at instead of hard-coding it.