Currently when a page relies on a “type of content”, all records who have a slug appear in the sitemap. It doesn’t respect SEO best practices, as only some URLs (AKA canonical URLs) should be in the sitemap.
A possible implementation: a privacy rule that allow URLs to be publicly accessible AND not in the sitemap
Note: currently, the only way to remove URLs from the sitemap is to use a privacy rule and make them accessible to certain users. My idea is to make all URLs publicly accessible while removing some of them from the sitemap (via a filter on specific variables)
Past conversation on the subject: How to select specific records when dynamic sitemap is activated on the page?
Link to vote in Bubble Idea board: Filter URLs appearing in the sitemap for pages with dynamic content (SEO best practice) | Bubble