Feed plugin and autodiscover

I have modified base.html.twig to add an autodiscover link for my RSS feed, per the instructions in the plugin documentation. The instructions say to add the line:

link rel=“alternate” type=“application/rss+xml” title=“My Feed” href=“{{ base_url }}.rss”

When I do this, base_url is not expanded into anything; the resulting link in the head section is href=”.rss”, instead of blog.rss as expected.

Where am I going wrong?

@dmeissner, It depends on where your blog resides. The example given by the Feed plugin, does not apply to all site configs.

If your blog is the home page, it should be fine. If the url to your blog is not the home page but eg. https://mydomain/blog, then the <link> should have the path to your blog appended e.g. : href="{{ base_url }}/blog.rss"

Thanks very much, all is working now!