Switch redirect when trap