add current url to outgoing middleware context