refactor redirect_to out of URL.
fix parent event misnaming bug