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
Comment #1
welly commentedI'm having the same problem. I created a component successfully. When I try to execute it, I get the following
This occurs randomly. Flushing the cache sometimes works, refreshing the Rules components home page also resolves the problem.
Comment #2
gusantor commentedI'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
Comment #3
alexanansi commentedIn Rules > settings, there is an option to clear the cache, this fixed it for me
Comment #4
tr commentedFeel 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.