"strings"
        "testing"
 
+       "html/template"
        "os"
        "path/filepath"
-       "text/template"
 
        //"github.com/fortytw2/leaktest"
        "github.com/fsnotify/fsnotify"
        require.Equal(t, "Home", enSite.Menus["main"].ByName()[0].Name)
        require.Equal(t, "Heim", nnSite.Menus["main"].ByName()[0].Name)
 
+       // Issue #1302
+       require.Equal(t, template.URL(""), enSite.RegularPages[0].RSSLink)
+
        // Issue #3108
        next := enSite.RegularPages[0].Next
        require.NotNil(t, next)
 
 
        Sitemap Sitemap
 
-       RSSLink template.HTML
+       RSSLink template.URL
 
        URLPath
        permalink    *url.URL
        return hugoInfo
 }
 
-func (p *Page) RSSlink() template.HTML {
+func (p *Page) RSSlink() template.URL {
        // TODO(bep) we cannot have two of these
        // Remove in Hugo 0.20
        helpers.Deprecated(".Page", "Use RSSlink", "RSSLink", true)
 
 func (s *Site) setPageURLs(p *Page, in string) {
        p.URLPath.URL = s.PathSpec.URLizeAndPrep(in)
        p.URLPath.Permalink = s.Info.permalink(p.URLPath.URL)
-       p.RSSLink = template.HTML(s.Info.permalink(in + ".xml"))
+       if p.Kind != KindPage && p.Kind != KindTaxonomyTerm {
+               p.RSSLink = template.URL(s.Info.permalink(in + ".xml"))
+       }
 }
 
 func (s *Site) newTaxonomyPage(plural, key string) *Page {
 
 
 import (
        "fmt"
+       "html/template"
        "path/filepath"
        "reflect"
        "testing"
 
        s := h.Sites[0]
 
+       // Issue #1302
+       term := s.getPage(KindTaxonomyTerm, "others")
+       require.Equal(t, template.URL(""), term.RSSLink)
+
        // Issue #3070 preserveTaxonomyNames
        if preserveTaxonomyNames {
                helloWorld := s.getPage(KindTaxonomy, "others", "Hello Hugo world")