Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: exclude external pages from Sitemap #1015

Merged
merged 1 commit into from
Oct 27, 2023
Merged

feat: exclude external pages from Sitemap #1015

merged 1 commit into from
Oct 27, 2023

Conversation

fuse314
Copy link
Contributor

@fuse314 fuse314 commented Oct 24, 2023

  • Include pages with relative externalUrl with correct URL in Sitemap
  • Exclude pages with absolute externalUrl from Sitemap
  • Include pages with relative externalUrl with correct URL in Sitemap
  • Improve output XML (no more linebreaks and spaces)

…e externalUrl with correct URL in Sitemap

- Exclude pages with absolute externalUrl from Sitemap
- Include pages with relative externalUrl with correct URL in Sitemap
- Improve output XML (no more linebreaks and spaces)
@fuse314
Copy link
Contributor Author

fuse314 commented Oct 24, 2023

The isset check for externalUrl did not work correctly before, pages with relativeUrl were still included in the Sitemap XML.
see sitemap.xml of blowfish.page and search for https://blowfish.page/users/

@nunocoracao
Copy link
Owner

Thanks for this @fuse314

@nunocoracao nunocoracao changed the base branch from main to dev October 27, 2023 20:47
@nunocoracao nunocoracao merged commit 228ee0b into nunocoracao:dev Oct 27, 2023
2 checks passed
@fuse314 fuse314 deleted the feature/exclude_external_from_sitemap branch October 27, 2023 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants