Fix broken RSS icon (wasn't using the root path in URL)

ff418552f8aaf69d257ace6121fae44dc6e5729c

Tucker McKnight <tmcknight@instructure.com> | Mon Jul 20 2026

Fix broken RSS icon (wasn't using the root path in URL)

Also change wording of the title for the RSS feed. "patches" is
left over from when this was written for darcs. Also, should
include the name of the repo in the title.
js_templates/commits.ts:30
Before
29
30
31
32
33
34
            href: nav.rssFeed()
          }, [
            m('img', {
              src: `${nav.rootPath()}frontend/img/rss-icon.svg`,
              style: "width: 11px; margin-right: 5px;"
            }),
            'RSS',
After
29
30
31
32
33
34
            href: nav.rssFeed()
          }, [
            m('img', {
              src: `${nav.rootPath()}/frontend/img/rss-icon.svg`,
              style: "width: 11px; margin-right: 5px;"
            }),
            'RSS',
js_templates/feed.ts:19
Before
18
19
20
21
22
23
    return render([
      m.trust('<?xml version="1.0" encoding="utf-8"?>'),
      m('feed', {xmlns: "http://www.w3.org/2005/Atom"}, [
        m('title', `Latest patches in ${flatRef.refName}`),
        m.trust(`<link href="${ data.reposConfig.baseUrl + '/repos/' + slugify(flatRef.repoName) + `/${flatRef.type}/` + slugify(flatRef.refName) + '/commits.xml'}" rel="self" />`),
        m.trust(`<link href="${data.reposConfig.baseUrl + '/repos/' + slugify(flatRef.repoName) + `/${flatRef.type}/` + slugify(flatRef.refName)}" />`),
        m('updated', dateToRfc3339(currentRepo.commits.get(currentRef.sha).date)),
After
18
19
20
21
22
23
    return render([
      m.trust('<?xml version="1.0" encoding="utf-8"?>'),
      m('feed', {xmlns: "http://www.w3.org/2005/Atom"}, [
        m('title', `Commits in ${flatRef.repoName} / ${flatRef.refName}`),
        m.trust(`<link href="${ data.reposConfig.baseUrl + '/repos/' + slugify(flatRef.repoName) + `/${flatRef.type}/` + slugify(flatRef.refName) + '/commits.xml'}" rel="self" />`),
        m.trust(`<link href="${data.reposConfig.baseUrl + '/repos/' + slugify(flatRef.repoName) + `/${flatRef.type}/` + slugify(flatRef.refName)}" />`),
        m('updated', dateToRfc3339(currentRepo.commits.get(currentRef.sha).date)),
js_templates/repo.ts:88
Before
87
88
89
90
91
92
                          m('div', {class: "fs-5 fw-light"}, `Latest commit in ${ref.name}`),
                          m('a', {href: nav.rssFeed(), class: "ps-1 p-0 btn badge shadow-none"}, [
                            m('img', {
                              src: "/frontend/img/rss-icon.svg",
                              style: "width: 11px; margin-right: 5px;"
                            }),
                            'RSS',
After
87
88
89
90
91
92
                          m('div', {class: "fs-5 fw-light"}, `Latest commit in ${ref.name}`),
                          m('a', {href: nav.rssFeed(), class: "ps-1 p-0 btn badge shadow-none"}, [
                            m('img', {
                              src: `${nav.rootPath()}/frontend/img/rss-icon.svg`,
                              style: "width: 11px; margin-right: 5px;"
                            }),
                            'RSS',