Fix redirect-on-load behavior.