diff --git a/core/modules/book/book.module b/core/modules/book/book.module index 295317d..a5cbb9c 100644 --- a/core/modules/book/book.module +++ b/core/modules/book/book.module @@ -111,7 +111,7 @@ function book_node_links_alter(array &$node_links, NodeInterface $node, array &$ if (($account->hasPermission('add content to books') || $account->hasPermission('administer book outlines')) && $access_control_handler->createAccess($child_type) && $node->isPublished() && $node->book['depth'] < BookManager::BOOK_MAX_DEPTH) { $links['book_add_child'] = array( 'title' => t('Add child page'), - 'url' => Url::fromRoute('node.add', ['node_type' => $child_type], ['parent' => $node->id()]), + 'url' => Url::fromRoute('node.add', ['node_type' => $child_type], ['query' => ['parent' => $node->id()]]), ); }