Skip to content

Commit

Permalink
Merge branch 'release/1.9.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Oct 19, 2019
2 parents c39094e + 28efde4 commit 71a1582
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v1.9.4
## 10/19/2019

1. [](#bugfix)
* Fixed a regression issue that caused sitemap not to work 'unless' you had an existing `sitemap` page [#65](https://github.com/getgrav/grav-plugin-sitemap/issues/65)

# v1.9.3
## 10/18/2019

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Sitemap
version: 1.9.3
version: 1.9.4
description: "Provide automatically generated **XML sitemaps** with this very useful, but simple to configure, Grav plugin."
icon: map-marker
author:
Expand Down
3 changes: 2 additions & 1 deletion sitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ public function onPagesInitialized()
public function onPageInitialized($event)
{
$page = $event['page'] ?? null;
$route = $this->config->get('plugins.sitemap.route');

if (is_null($page)) {
if (is_null($page) || $page->route() !== $route) {
// set a dummy page
$page = new Page;
$page->init(new \SplFileInfo(__DIR__ . '/pages/sitemap.md'));
Expand Down

0 comments on commit 71a1582

Please sign in to comment.