Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When creating content using the node links block you are never taken through to the newly created node. From some IRC discussion I'm led to believe the culprit is something to do with the NULL portion of line 220 of the og_extras module.
$content = og_node_create_links($group['group_type'], $group['gid'], OG_AUDIENCE_FIELD, NULL, $types);
Does anyone have a workaround to get this fixed?
Thanks in advance.
Ben.
Comments
Comment #1
bnicoll CreditAttribution: bnicoll commentedNot sure if this will help shed some light on the issue - but a suggested fix on a separate issue... which i couldn't get to work - #1795290: Remove destination from the link
Any help appreciated.
Thanks,
B.
Comment #2
eojthebraveThis is the intended behaviour of the module. To redirect the user to back to the page they are currently on rather than to the new node. I've started to look in to making this a configurable option in this issue #1795290: Remove destination from the link
The NULL portion of the og_node_create_links() function "is" the culprit in this case, but the function is also currently broken so it doesn't matter what you pass to the function as $destination it'll be ignored. #1848028: The $destination paramater for the og_node_create_links function is not used
Closing this issue as a duplicate that will get resolved in the above mentioned issue once the problem w/ og_node_create_links() is sorted out.