getgrav / grav-plugin-sitemap

Grav Sitemap Plugin
https://getgrav.org
MIT License
42 stars 42 forks source link

Ignore protected pages does not work #84

Closed Japhys closed 3 years ago

Japhys commented 3 years ago

I enabled this option in plugin config. However all my protected pages are listed in de sitemap.xml. The redirect to login page of course but still I like them not to be in there

pages have this code

access: site.login: true admin.login: true login: visibility_requires_access: true

rhukster commented 3 years ago

Actually they should not be displayed with the latest version if you have ignore_protected: true because any page that has access: will be ignored.