Interface to get target URL

This changes required to detect redirect between different blocks of code.