Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

Commit a07b3ea

Browse files
committed
The atom:link URL needs to be absolute, also fix double encoding on the ampersand
1 parent c4c098e commit a07b3ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

com_podcastmanager/site/views/feed/view.raw.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ public function display($tpl = null)
7575
// Get the data from the model
7676
$items = $this->get('Items');
7777
$feed = $this->get('Feed');
78-
$feedurl = JRoute::_('index.php?option=com_podcastmanager&format=raw&feedname=' . $feed->id);
78+
79+
// The last param has to be 3 so that both 2.5 and 3.x detect we want the site domain prepended since using 0 as specified in docs does not work
80+
$feedurl = JRoute::_('index.php?option=com_podcastmanager&format=raw&feedname=' . $feed->id, false, 3);
7981

8082
$document = JFactory::getDocument();
8183
$document->setMimeEncoding('application/rss+xml');

0 commit comments

Comments
 (0)