Use the right parameter for resturl in TW. Fixes #4178