fixed redirect url cant cast