I want "random/search/node/keywords" be the same as "search/node/keywords", or to be more precise, I need the "random/" at some part of the URL, so I can enable certain blocs on a certain search page. How can I achieve this?

I'm using Drupal 7

  • 1
    You probably do a hook_menu_alter() implementation that just copies the existing search menu items over to your new path... but I feel like you're probably trying to approach this incorrectly... say more about the blocks you want to add and when you need them.
    – drewish
    Commented Dec 2, 2011 at 14:29

1 Answer 1


You could rebuild the search page using views under any custom path. Have a look at http://drupal.org/project/search_api for more possibilities.

Regarding the block visibility: you can use */search/node/keyword.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.