fix redirect to back for non histori api browsers