Commit 5556b408 authored by catch's avatar catch
Browse files

Issue #3218024 by Charlie ChX Negyesi, longwave, Berdir: Field called "link"...

Issue #3218024 by Charlie ChX Negyesi, longwave, Berdir: Field called "link" breaks the RSS Views plugins

(cherry picked from commit c7f050d5)
parent 207e8275
......@@ -79,7 +79,6 @@ public function render($row) {
return;
}
$comment->link = $comment->toUrl('canonical', ['absolute' => TRUE])->toString();
$comment->rss_namespaces = [];
$comment->rss_elements = [
[
......@@ -112,7 +111,7 @@ public function render($row) {
$item->description = $build;
}
$item->title = $comment->label();
$item->link = $comment->link;
$item->link = $comment->toUrl('canonical', ['absolute' => TRUE])->toString();
// Provide a reference so that the render call in
// template_preprocess_views_view_row_rss() can still access it.
$item->elements = &$comment->rss_elements;
......
......@@ -91,7 +91,6 @@ public function render($row) {
return;
}
$node->link = $node->toUrl('canonical', ['absolute' => TRUE])->toString();
$node->rss_namespaces = [];
$node->rss_elements = [
[
......@@ -138,7 +137,7 @@ public function render($row) {
$item->description = $build;
}
$item->title = $node->label();
$item->link = $node->link;
$item->link = $node->toUrl('canonical', ['absolute' => TRUE])->toString();
// Provide a reference so that the render call in
// template_preprocess_views_view_row_rss() can still access it.
$item->elements = &$node->rss_elements;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment