Subject: [PATCH] Allow relative and absolute URLs in RSS feeds --- Index: core/modules/views/src/Plugin/views/row/RssFields.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/core/modules/views/src/Plugin/views/row/RssFields.php b/core/modules/views/src/Plugin/views/row/RssFields.php --- a/core/modules/views/src/Plugin/views/row/RssFields.php (revision 600e0e923478e1c2d7b04f3a36bbf8e3eea1ce32) +++ b/core/modules/views/src/Plugin/views/row/RssFields.php (date 1737048935551) @@ -139,8 +139,13 @@ // Create the RSS item object. $item = new \stdClass(); $item->title = $this->getField($row_index, $this->options['title_field']); - $item->link = $this->getAbsoluteUrl($this->getField($row_index, $this->options['link_field'])); - + $link_value = $this->getField($row_index, $this->options['link_field']); + if (str_starts_with($link_value, 'http')) { + $item->link = $link_value; + } + else { + $item->link = $this->getAbsoluteUrl($this->getField($row_index, $this->options['link_field'])); + } $field = $this->getField($row_index, $this->options['description_field']); $item->description = is_array($field) ? $field : ['#markup' => $field];