Someone posted about adding the RSS feed links to the head section of the master page. It makes sense to do this using SEOHelper (since this is how are adding other related info e.g. Page title, page description).

Patch below:

--------------------------------------------------------------------------------------------------------------

Changed Common/SEOHelper.cs


Added new method:

        /// <summary>
        /// Renders an RSS link to the page
        /// </summary>
        /// <param name="page">Page instance</param>
        /// <param name="title">RSS Title</param>
        /// <param name="href">Path to the RSS feed</param>
        public static void RenderHeaderRSSLink(Page page, string title, string href)
        {
            {
                HtmlGenericControl link = new HtmlGenericControl("LINK");
                link.Attributes.Add("rel", "alternate");
                link.Attributes.Add("type", "application/rss+xml");
                link.Attributes.Add("title", title);
                link.Attributes.Add("href", href);
                page.Header.Controls.Add(link);
            }
        }


Changed main.master.cs Page_Load

After line 50 add:

            string newsRSSUrl = CommonHelper.GetStoreLocation(false) + "NewsRSS.aspx?LanguageID=" + NopContext.Current.WorkingLanguage.LanguageID.ToString();
            string blogRSSUrl = CommonHelper.GetStoreLocation(false) + "BlogRSS.aspx?LanguageID=" + NopContext.Current.WorkingLanguage.LanguageID.ToString();


After line 55 add:

            SEOHelper.RenderHeaderRSSLink(this.Page, defaulSEOTitle + ": News", newsRSSUrl);
            SEOHelper.RenderHeaderRSSLink(this.Page, defaulSEOTitle + ": Blog", blogRSSUrl);


Reason:

Rather than displaying a RSS link directly on the page, you can inform the browser of your feeds by adding an rss link to the head of the page.
You could do this directly in main.master but as other head options such as META information is added by SEO helper, it makes sense to let it add the RSS links too.
It also ensures that the RSS feed is localised by getting the current language.

--------------------------------------------------------------------------------------------------------------