path

Programmatically redirect

There is a drupal function ready to use to redirect called drupal_goto();
but this function does a direct redirection and sometimes it is useful to let Drupal continue doing his stuff by setting $_GET['destination'] instead

Current path alias

to get the current page alias path use