I have a rule that redirects a user to /forum after they delete a forum topic. However, I am receiving this 404 error instead of being redirected:

The requested page "/node/585/delete?render=overlay&render=overlay" could not be found.

Here is the rule:

{ "rules_redirect_after_deleting_forum_topic" : {
    "LABEL" : "Redirect after deleting forum topic",
    "PLUGIN" : "reaction rule",
    "REQUIRES" : [ "rules" ],
    "ON" : [ "node_delete" ],
    "IF" : [
      { "node_is_of_type" : { "node" : [ "node" ], "type" : { "value" : { "forum" : "forum" } } } }
    ],
    "DO" : [ { "redirect" : { "url" : "forum\/" } } ]
  }
}

Why is this happening?

Comments

welly’s picture

Priority: Normal » Critical

I'm having the same problem. I created a component successfully. When I try to execute it, I get the following

The requested page "/admin/config/workflow/rules/components/manage/manage/18/execute?destination=admin/config/workflow/rules/components/manage" could not be found.

This occurs randomly. Flushing the cache sometimes works, refreshing the Rules components home page also resolves the problem.

gusantor’s picture

I'm also receiving 404 error

this happend to me just while using overlay, without overlay it doesn't happend

D 7.19
Rules 7.x.22

for the rule:

FORCE REDIRECT set to true
APPEND DESTINATION PARAMETER set to false

I've left "URL path cleaning method" parameter to "Rules (built in)" (default, don't know if it matters anyway)

also, if I set an absolute path as /my-view-path, the redirected URL has an extra slash on it, example.: mysite.com/es//my-view-path

it would be great if it work with overlay, thanks

alexanansi’s picture

In Rules > settings, there is an option to clear the cache, this fixed it for me

tr’s picture

Issue summary: View changes
Priority: Critical » Normal
Status: Active » Closed (cannot reproduce)

Feel free to reopen this if you find this is still a problem with the current version of Rules. Please attach an export of your Rule so we can try to reproduce the problem.