mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 16:14:25 +03:00
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:
parent
474b9367dd
commit
5d70604f9b
@ -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/';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user