wintoncode / Winton.AspNetCore.Seo

Makes it easy to add search engine metadata to your ASP.NET Core website
Other
73 stars 7 forks source link

Question: GetSitemap instead of Sitemap? why? #27

Closed OV2012 closed 6 years ago

OV2012 commented 6 years ago

Hi, sorry, if I ask, but I don't understand why the robots.txt contains "GetSitemap: {sitemapUrl}" instead of simply "Sitemap :{sitemapUrl}? it's about this function in the RobotsTxtFactory:

private string CreateSitemapUrl()
{
    string baseUrl = _httpContextAccessor?.HttpContext?.Request?.GetEncodedUrl();
    Url sitemapUrl = (baseUrl ?? string.Empty).Replace(Constants.RobotsUrl, Constants.SitemapUrl);
    return $"GetSitemap: {sitemapUrl}";
}

i mean according to specification it should be sitemap: https://de.wikipedia.org/wiki/Robots_Exclusion_Standard

thanks!

Choc13 commented 6 years ago

Hi @OV2012,

Thanks for raising this. You are correct, this is a bug. I'll do a patch for both major versions.

Cheers!