Redirect to Referrer URL |
[eluser]austintbiggs[/eluser]
I'm trying to figure out how to redirect to referrer, but Instead of using the redirect to referrer method proposed here couldn't you just check if the referrer url has the same base url and if so use Code: redirect($this->agent->referrer(), 'refresh');
[eluser]Zaher Ghaibeh[/eluser]
have you tried this one : Code: if($this->agent->is_referral()){ i didnt test it but i think this will solve your problem
[eluser]InsiteFX[/eluser]
This is how I do it: Code: if (isset($this->input->server('HTTP_REFERER')) && strpos($this->input->server('HTTP_REFERER'), base_url()) === 0) InsiteFX |
Welcome Guest, Not a member yet? Register Sign In |