pyrocms/pyrocms — Issue #1009: Blog XML Sitemap - broken url
Author: ArthurGuy
Created: 2011-12-15 09:11:09+00:00
State: open

The article urls in the blog sitemap have recently broken (I believe they used to work).
They now only consist of the date parameter and the article slug, they are missing the initial 'blog' prefix.

$loc = site_url(date('Y/m/', $article->created_on).$article->slug);

It should be.

$loc = site_url('blog/'.date('Y/m/', $article->created_on).$article->slug);