I have a search form which returns to search page.

```
drupal_goto('/searchyour/trips', array('query' => $query));

```

this is work fine if a user in active page. search url will replace as eg: example.com/searchyour/trips

But if user in 404 page (example.com/nopage) and click search, search url will set to example.com/nopage/searchyour/trips I want to change this to example.com/searchyour/trips.

I'm new to drupal. Help me to solve this. :-)