Instead of pulling out http_referer here and trying a relative redirect to it, use the utility redirect_referer which takes a fallback if there is no referer. Cleaner and more correct.
Instead of pulling out http_referer here and trying a relative redirect to it, use the utility redirect_referer which takes a fallback if there is no referer. Cleaner and more correct.

tcmitchell/geni-portal,tcmitchell/geni-portal,charliemeyer/geni-portal,charliemeyer/geni-portal,charliemeyer/geni-portal,tcmitchell/geni-portal,tcmitchell/geni-portal,tcmitchell/geni-portal,charliemeyer/geni-portal,charliemeyer/geni-portal