Dolphiq / craft3-plugin-sitemap

A craft 3 plugin that provides an easy way to enable and manage an XML sitemap for search engines like Google
MIT License
28 stars 18 forks source link

Sitemap showing duplicated URLs #44

Closed ruthshepperd closed 4 years ago

ruthshepperd commented 4 years ago

Getting duplicated URLs showing in the sitemap, this might be to do with draft entries. Can this be fixed please? Thanks

itsmattsoria commented 4 years ago

πŸ‘same β€” after some testing it definitely appears to be adding drafts to the sitemap. I found some drafts of entries that I didn't know existed, deleted the drafts, and the sitemap no longer has the duplicate entries.

zzseba78 commented 4 years ago

@poopsplat Hi! How did you deleted the drafts?

itsmattsoria commented 4 years ago

@zzseba78 there are two ways to do it I think:

1) You might be able to see your drafts from the entries view itself, though I swear it doesn't show my drafts accurately, so you may not see your drafts here either:

Screen-Shot-2020-04-19-at-09 22 31

2) The way that I had to do it was go into the entries for which I had drafts appearing in the sitemap and then where it says "current" up at the top of the post edit screen if you click on that you should get a dropdown that shows any drafts you have. Click on a draft and then while on that draft click on the little edit pencil icon that appears next to the draft name at the top and select "delete". This will delete your draft and you can have your sitemap regenerated after you go through and delete all your drafts and then you should be good to go!

Screen-Shot-2020-04-19-at-09 24 14

Screen-Shot-2020-04-19-at-09 24 32

zzseba78 commented 4 years ago

@poopsplat Yes! Thank you! Cleanup time πŸ˜ƒ

johanzandstra commented 4 years ago

Hi guys I will release a new version soon to get this drafts fixed

On Sun, 19 Apr 2020 at 16:36, Sebastian notifications@github.com wrote:

@poopsplat https://github.com/poopsplat Yes! Thank you! Cleanup time πŸ˜ƒ

β€” You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Dolphiq/craft3-plugin-sitemap/issues/44#issuecomment-616149561, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEET4O3BW4ZOKCMUG2YE53RNMEAPANCNFSM4KJSJUNQ .

-- Met vriendelijke groet, Johan Zandstra Dolphiq Technical director +31 (0)35 20 30 052 | Rembrandtlaan 1b | 3723 BG Bilthoven

johanzandstra commented 4 years ago

Sorry for the long delay, this is fixed in the last version v1.3.0

jamiematrix commented 2 years ago

We're getting this problem using v.1.3.2 where it looks like drafts are included in the count of entries. Singles entries are showing as 30+ entries, and there's a structure of roughly 20 entries but is being listed as 300+ as some have many draft entries