Repository navigation
#359 - Feeds: stable GUID and publish date in RSS items - #452
Open
miromichalicka wants to merge 1 commit into
Open
miromichalicka wants to merge 1 commit into
miromichalicka wants to merge 1 commit into
Conversation
The article and forum feeds used the aliased node URL as the item GUID. Pathauto regenerates the alias on title change, so readers (Slack RSS) saw a new item and re-posted it. Use "<nid> at https://www.drupal.cz" (same format as core's node_rss row) with isPermaLink=false, and use the created date in RFC 2822 format for pubDate instead of the changed date. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #359.
Problem
/feed/articles.xmland/feed/forum.xmlused the aliased node URL as the item<guid>. The pathauto patterns areclanky/[node:title]andforum/.../[node:title], withupdate_action: 2, so a title change creates a new alias. That gives a new GUID, and the Slack RSS app posts the article again.Change (
views.view.feeds.yml, both feed displays)nidfield, rewritten to<nid> at https://www.drupal.cz, withisPermaLink="false". This is the same format core'snode_rssrow uses for/rss.xml.<link>still points to the alias.createddate instead ofchanged, so an edit doesn't make the item look new. The format is now RFC 2822 (r), which RSS requires; before it was ISO 8601.Verified locally (DDEV, temporary article that was deleted afterwards)
Before, the GUID was
https://drupalcz.ddev.site/clanky/puvodni-titulek-359. After this change:/clanky/puvodni-titulek-3592 at https://www.drupal.czSat, 24 Oct 2026 04:12:50 +0200/clanky/zmeneny-titulek-3592 at https://www.drupal.cz(same)The forum feed renders the same way:
<guid isPermaLink="false">3 at https://www.drupal.cz</guid>.The GUID format changes once, so Slack will see the current 10 items in each feed as new and post them again one time. To avoid that, remove the RSS subscriptions in Slack before deploy and add them back afterwards.
🤖 Generated with Claude Code