Trying to fix request redirect