Skip to content

Commit

Permalink
Fix rss content's url to the RSS feed
Browse files Browse the repository at this point in the history
fixes #3719

- correctly sets the path to the RSS feed for tags and authors
  • Loading branch information
hswolff committed Aug 10, 2014
1 parent 474b936 commit 5d70604
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/server/controllers/frontend.js
Expand Up @@ -450,14 +450,14 @@ frontendControllers = {
if (isTag()) {
if (page.meta.filters.tags) {
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 (page.meta.filters.author) {
title = page.meta.filters.author.name + ' - ' + title;
feedUrl = feedUrl + 'author/' + page.meta.filters.author.slug + '/';
feedUrl = siteUrl + 'author/' + page.meta.filters.author.slug + '/rss/';
}
}

Expand Down

0 comments on commit 5d70604

Please sign in to comment.