Hi.
I have a special content type where I like the system to redirect the user to some different page other then default (witch is "node/#num").
How do I change that default destination? I fill its better to do it inside my content node then in "node.module" core but how&where ?

Comments

budda’s picture

I *think* this can be achieved with the actions and workflow modules.

--
Drupal consultancy

budda’s picture

Another way to achieve this is by building your links to the atual node/add/type urls yourself. You need to append the following tothe end to direct the user to another destination after submitting their content:

/node/add/story?destination=user

The above would redirect users to their personal user page after adding a 'story' node.

--
Ixis (UK) providing Drupal consultancy and Drupal theme design.

capmex’s picture

Great! this works also on drupal 5.x, saved me a lot of trouble in a community site.

ellanylea’s picture

Does this mean users can simply delete the ?destination=user part of the URL, fill out the story form, click submit and be automatically redirected to node/##?

---------------------------------------------------
AdAstra.ca - Optimize the Web. Optimize the World.

Archnemysis’s picture

Simply deleting that part of the URL after the page is loaded will have no effect. Users would need to delete the ?destination=user part of the URL, then reload the page.

introfini’s picture