added how to get url for redirect
added get redirect