Get back to trim() and strip / from left/right but when redirecting properly create the redirurl var