I have two content types, a question and an answer. Both have a nodereference field (same field), and both reference the other. I set up the full build mode of 'question' to include the referred node (displayed as a custom build mode), i.e. the answer. So, I need to redirect from all answers to the question node. So far so good.

Now, the redirect is producing loops. I tried with the rules module and then with the cck redirection module (both use drupal_goto). Both have the same results. Hence the bug report, asking really if this could be a nd issue or perhaps a nodereference issue?

Thanks!

Comments

magnestyuk’s picture

Title: redirection with nodereference » redirection loop if referenced node has a backreference
magnestyuk’s picture

I did some more tests and changed stuff. I deleted the backreference completely, so now only 'answer' has a nodereference field, linking to 'question.' In order to be able to put the 'answer' that references the 'question' below the question itself, I made use of the backlinks default view provided by views. It all works ok when for row style I select 'node,' and it works also when I select 'display suite node' row style and use the 'full node' or 'teaser' build modes. When I switch to any other custom build mode though, it all starts to cause redirect loops.
Again, I'm using the CCK redirection module, with a redirect field on 'answer,' pointing to 'question.'

magnestyuk’s picture

Title: redirection loop if referenced node has a backreference » nodereference backlinks displayed with custom build modes produce a redirect loop

...looking for the best title

swentel’s picture

Status: Active » Closed (won't fix)

The formatters that nd is using are a direct copy from the nodereferences project in cck which has support for detecting redirecting loops, so the problem must be somewhere else.