I have a node template where I check the url for the existance of some parts and play with that, eg, if the node is called your/recipies, I catch urls like


and check the url for bananes,apples,oranges in the template.

I used aliases to point those urls to the original node, but they keep on dissapearing. It's probably be a breeze to set up a module router, like

function kitchen_menu() {
        $items = array();

        $items['your/recipies/%'] = array(
            'title'  => t('Recipies'),
            'page callback' => 'drupal_magic',
            'page arguments' => array('your/recipies')


to make drupal just render the node (and not redirect somewhere). however, i cant find out what to write instead of drupal_magic.

(recipies, if you must know, is a webform; not something i can easily generate myself)

1 Answer 1


fwiw, I now did this different. I won't accept this as an answer, because it isnt. But this works as well in my case

function kitchen_url_inbound_alter(&$path, $original_path, $path_language) {
    if (preg_match('|^your/recepies(/\w+)?|', $path, $matches)) {
        $path = 'your/recepies';

Your Answer

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

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