Fix back button broken on redirect