trim last slech and redirect