ikeikeikeike / go-sitemap-generator

go-sitemap-generator is the easiest way to generate Sitemaps in Go
https://github.com/ikeikeikeike/go-sitemap-generator
MIT License
218 stars 65 forks source link

add sitemapsPath to the final URL in the sitemap index #19

Closed gadelkareem closed 6 years ago

gadelkareem commented 6 years ago

Let the base URL parse the relative paths, and add a slash to the end of sitemapsPath to make sure it will not be ignored. This fixes sitemap URLs ignoring sitemapsPath var ex: http://example.com/sitemap.xml instead of http://example.com/sitemapsPath/sitemap.xml

ikeikeikeike commented 6 years ago

thx