Skip to content
Snippets Groups Projects

Issue #2918784: Views RSS row plugin incorrectly assumes links are relative

Issue #2918784: Views RSS row plugin incorrectly assumes links are relative
2 unresolved threads
Open Michael Vanetta requested to merge issue/drupal-2918784:2918784-10.1.x into 10.1.x
2 unresolved threads

(cherry picked from commit d122a251)

Closes #2918784

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
130 131 // Create the RSS item object.
131 132 $item = new \stdClass();
132 133 $item->title = $this->getField($row_index, $this->options['title_field']);
133 $item->link = $this->getAbsoluteUrl($this->getField($row_index, $this->options['link_field']));
134
135 // If internal link, get absolute URL from URI.
136 $link = $this->getField($row_index, $this->options['link_field']);
137 $link = $link ? trim(strip_tags($link)) : '';
  • Dave Long
    Dave Long @longwave started a thread on the diff
  • 147 159 $item_guid = $this->getField($row_index, $this->options['guid_field_options']['guid_field']);
    148 160 if ($this->options['guid_field_options']['guid_field_is_permalink']) {
    149 161 $guid_is_permalink_string = 'true';
    162 $item_guid = $item_guid ? trim(strip_tags($item_guid)) : '';
  • Dave Long
  • added 1 commit

    • feb4c252 - get absolute string for external links too

    Compare with previous version

  • Please register or sign in to reply
    Loading