Hello List,<br><br>I am trying to use drupal_goto and not able to use as I would like to.<br><br>I am trying to create a custom callback for 404 pages and redirect them to homepage.<br>I know this can be done via drupal default mechanism, but my homepage is on panels, and have a condition check of drupal_is_front_page, so cannot be used.<br>
Also the URL does not change when we use default 404 mechanism.<br><br>Now, If I use drupal_goto('HOMEPAGE'), it stucks in a redirection loop, and it is never redirected to homepage.<br><br>I tried printing the output in common.inc, where this function is defined.<br>
On the very first line, i do get the correct path, but when it is passed in header, it changes to current url, and thus stucks in loop.<br>I also tried using the header function directly and it worked.<br><br>Is this some kind of bug in core, Or am i doing something really silly which i am not aware of.<br>
<br clear="all">Any help appreciated.<br><br>-- <br>Thanks,<br>Vaibhav Jain<br>