fixing it so we redirect around to the correct urls