change 'record visit then redirect' to 'window.open then post to record'