Maybe I'm missing something here, but it seems like the drupal_get_destination(); query in the Views handler means that, if you've selected the option to create a new node then be redirected to its edit form, you are instead redirected back to the previous node.

Wrapping the line $this->options['alter']['query'] = drupal_get_destination(); from the views/views_handler... file in a condition that checks which option is selected should fix this. Or maybe if there are performance issues there, two different handlers, one with and one without, and the appropriate one is used.

CommentFileSizeAuthor
#3 1856674-2.patch1.66 KBpwolanin

Comments

pwolanin’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

I don't understand what you are saying. Normally, if you have the link it a view, you are returned to the View by the destination parameter, never to the node.

pwolanin’s picture

Status: Postponed (maintainer needs more info) » Active

ok, I see - it takes you back to the view and never to the edit form

pwolanin’s picture

Status: Active » Needs review
StatusFileSize
new1.66 KB

Here's a fix

pwolanin’s picture

Version: 7.x-1.0-rc1 » 7.x-1.x-dev
pwolanin’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Needs review » Patch (to be ported)

committed - probably needs to be backported

  • Commit 7b7d257 on 7.x-1.x, 8.x-1.x by pwolanin:
    Issue #1856674 fix for Redirect to newly created node's edit form doesn'...