rss link fix
item links were pointing to the wrong thing. oops.
This commit is contained in:
parent
4c9fbc3ded
commit
a21cc74241
1 changed files with 5 additions and 1 deletions
|
@ -39,10 +39,14 @@ class RSSController extends Controller
|
|||
$html = urldecode($item['html']);
|
||||
$updatedAt = Carbon::parse($item['rawUpdated']);
|
||||
$date = $updatedAt->format('D, d M Y H:i:s O');
|
||||
$link = $global['base_url'] . "/" . $item['path'] . "/" . $item['slug'];
|
||||
if ($global['dynamicRender'] != "true") {
|
||||
$link = $link . ".html";
|
||||
}
|
||||
$feedContent .= "
|
||||
<item>
|
||||
<title>{$title}</title>
|
||||
<link>{$global['base_url']}/rss/feed/item/{$item['uuid']}</link>
|
||||
<link>{$link}</link>
|
||||
<guid>{$global['base_url']}/rss/feed/item/{$item['uuid']}</guid>
|
||||
<pubDate>{$date}</pubDate>
|
||||
<description><![CDATA[{$html}]]></description>
|
||||
|
|
Loading…
Add table
Reference in a new issue