Attempts to fix authentication redirect