re-change location.href in snagger init function