nieuws/feed: include domain part in article link
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 25 Jun 2019 19:12:18 +0000 (21:12 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 25 Jun 2019 19:12:18 +0000 (21:12 +0200)
Not required by specs, but some readers do not support relative urls,
for example Tiwool's RSS Reader v1.0.

nieuws/feed/index.php

index 9dc05ec64733e69f537f548c8f997f7df191be87..3bea1b728582a8c820f3bfb0319c2c52cb273b7a 100644 (file)
@@ -27,7 +27,7 @@ foreach ($pages as $i => $page) {
 
        <entry>
                <id><?= $siteref . '/' . $article->link ?></id>
-               <link href="/<?= $article->link ?>" />
+               <link href="<?= $siteref . '/' . $article->link ?>" />
                <title><?= $article->title ?></title>
                <published><?= $article->dateiso ?></published>
                <updated><?= $article->dateiso ?></updated>