Take the following situation...

  • Javascript disabled
  • Edit and existing node

You'll notice that if you do that it points back to the node/add/[content type] path. Ooops this is kind of a usability issue. If we do the following it should resolve the issue...

Change the code from line 130...

    'query' => array('destination' => 'node/add/' . str_replace('_', '-', $src_type)),

to...

   'query' => array('destination' => $_GET['q']),

It should redirect properly :)

Comments

Kristen Pol’s picture

I have the "add" link on some non-node/add pages (using panels) and popups_reference isn't working in this case. I tried changing the destination (via form_alter) but still no go. :(

Kristen

ShaneOnABike’s picture

Maybe take a look at the path that is being passed? And also how panels is actually generating it's normal path b/c that could be causing issues for you? Just a thought. Good luck!

apaderno’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Issue summary: View changes
Status: Active » Closed (outdated)

I am closing this issue, as it has been created for a release that is now not supported.