Handling redirects in stream url