I am using rules a lot, but there is one rule which I do not succeed in setting up correctely.

I want to redirect to /user/[autor-uid] when a user tries to view a content profile node of the author.

See my rule attached

So maybe someone can help me.

Comments

baff’s picture

The rule says:
Node: A node should be shown
Condition: when node type is one of my content profile types
Action: redirect to user/[autor-uid]

Other rules with redirect work, but not when viewing a content profile node and redirect to user/uid

baff’s picture

Project: Automatic Nodetitles » Rules
baff’s picture

StatusFileSize
new0 bytes

I have simplified the rule so it is more easy to check. To me it looks as if the rule is looping in a recursion

baff’s picture

StatusFileSize
new2.49 KB

Sorry file was empty - so here again

Does it matter if I redirect to a user/view panel and in this panel I show the content profile node as a panel tab?
When I deactivate the panel tab it works.

baff’s picture

Title: Redirect to node author » Redirect to user/view panel with content profile type as panel tab does not work

I will try as next step to show the content node in a mini panel and show this mini panel instead of node itself in the user panel - maybe that works

baff’s picture

StatusFileSize
new11.77 KB

Here is the panel as well

baff’s picture

Ok - using a mini panel does not help.

Do me it looks as if the rule is not only trigged o a node view (for a content profile node) but also on a user / view (using panels and showing the node in the profile from where one wants to redirect ).

So, is it possible to make a rule where one is not able to view a content profile node directely on a node view but only via a content profile view?

baff’s picture

Ok I have got it working - I changed from checking content type to checking path URL - that works sometimes:-)
Yes sometimes .... once it works on another perso it starts looping in recursion .....

There seems to be a major incompatibility with panels ... or panel tabs ...or ... profile

I think it would be worth checking that out.

baff’s picture

I am using http://drupal.org/project/page_manager_redirect now unti I get the rule working

mitchell’s picture

Status: Active » Fixed

looks fixed in #9. See also Rules Bonus Pack for similar integrations

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.