Fixed redirect_uri when not using url rule (#2)