Discourse Sitemap Plugin

Sitemap line in robots.txt renders incorrectly. You can check it on https://meta.discourse.org/robots.txt. Watch the last line.

<%- if SiteSetting.sitemap_enabled? %>
<%- unless SiteSetting.login_required? %>
Sitemap: <%= request.protocol %><%= request.host_with_port %>/sitemap.xml
<% end %>
<% end %>
4 Likes

Same problem for me https://p-cambridge.info/robots.txt

@RGJ, please look at this

I am not the maintainer of this plugin anymore, it’s an official plugin now.

I think this broke here FEATURE: Allow customization of robots.txt by OsamaSayegh · Pull Request #7884 · discourse/discourse · GitHub

2 Likes

That looks indeed related. Any ideas @Osama?

2 Likes

This broke with the Rails 6 upgrade, here is a PR with a fix:

8 Likes