Implemented redirect url support