[eluser]ludovic[/eluser]
Depends where you are. For example if data come from form you can write a hidden field
Code:
<?php echo form_hidden('redirect_url', uri_string()); ?>
And after retrieve it in your Controller or Model like this:
Code:
redirect($this->input->post('redirect_url'), 'location');
Or you can simply use
Code:
redirect($_SERVER['HTTP_REFERER']);