Skip to content

Commit

Permalink
broken links - account for .rss feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
adelikat committed Aug 7, 2022
1 parent c156e81 commit 9deff91
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions TASVideos/ViewComponents/BrokenLinks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ public async Task<IViewComponentResult> InvokeAsync()
.Concat(generalExceptions)
.ToList();

var rssFeeds = generalPages
.Where(p => p.StartsWith("rssfeeds/"))
.Select(p => p.Replace("rssfeeds/", "") + ".rss")
.ToList();

generalPages = generalPages.Concat(rssFeeds).ToList();

// These should be updated one day, but there are far too many for now
var tempRoutedExceptions = new[] { "forum/t", "forum/f", "forum/p" };

Expand Down

0 comments on commit 9deff91

Please sign in to comment.