Fix rss content's url to the RSS feed

fixes #3719

- correctly sets the path to the RSS feed for tags and authors
This commit is contained in:
Harry Wolff 2014-08-09 23:16:27 -04:00
parent 474b9367dd
commit 5d70604f9b

View File

@ -450,14 +450,14 @@ frontendControllers = {
if (isTag()) { if (isTag()) {
if (page.meta.filters.tags) { if (page.meta.filters.tags) {
title = page.meta.filters.tags[0].name + ' - ' + title; title = page.meta.filters.tags[0].name + ' - ' + title;
feedUrl = feedUrl + 'tag/' + page.meta.filters.tags[0].slug + '/'; feedUrl = siteUrl + 'tag/' + page.meta.filters.tags[0].slug + '/rss/';
} }
} }
if (isAuthor()) { if (isAuthor()) {
if (page.meta.filters.author) { if (page.meta.filters.author) {
title = page.meta.filters.author.name + ' - ' + title; title = page.meta.filters.author.name + ' - ' + title;
feedUrl = feedUrl + 'author/' + page.meta.filters.author.slug + '/'; feedUrl = siteUrl + 'author/' + page.meta.filters.author.slug + '/rss/';
} }
} }