Skip to content

Commit

Permalink
Merge branch 'hotfix-1.2.4' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicWatson committed Oct 15, 2024
2 parents 5a88c05 + b5f929f commit 6c4290d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v1.2.3

* Include partially restricted pages in sitemap

## v1.2.2

* [#13](https://github.com/pixl8/preside-ext-xml-sitemap/issues/13) - Announce interception point after writing to file
Expand Down
4 changes: 2 additions & 2 deletions services/GoogleSitemapService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ component {
}
}

if ( pageSearchEngineRule=="allow" && pageAccessRestriction=="none" && livePage ) {
if ( pageSearchEngineRule=="allow" && pageAccessRestriction!="full" && livePage ) {
haveAccessPages.append( _getSitemapAttributesForPage( arguments.siteId, page ) );
}

Expand Down Expand Up @@ -291,7 +291,7 @@ component {
childPage.sitemap_priority = childPage.sitemap_priority == "inherit" ? arguments.parentSitemapPriority : childPage.sitemap_priority;
childPage.sitemap_change_freq = childPage.sitemap_change_freq == "inherit" ? arguments.parentSitemapChangeFreq : childPage.sitemap_change_freq;

if ( pageSearchEngineRule=="allow" && pageAccessRestriction=="none" && livePage ) {
if ( pageSearchEngineRule=="allow" && pageAccessRestriction!="full" && livePage ) {
arguments.haveAccessPages.append( _getSitemapAttributesForPage( arguments.siteId, childPage ) );
}

Expand Down

0 comments on commit 6c4290d

Please sign in to comment.