fix redirect callback

it was using location.hash instead of the passed params