There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-77b3786e-0c3f-4826-b2f2-57d4b7de1a3c XWIKI-19484 Open

Empty "Wiki Feed RSS" feed

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-75415d7f-efa9-4f58-9706-b61e45081fc3 Vincent Massol on 21/Oct/24 15:31
 

For now, what I propose is to quickly fix the "empty wiki feed RSS" issue by replacing the config code with:

#set ($rssURL = $services.rest.url($doc.documentReference))
#set ($rssURL = "${rssURL.substring(0, $rssURL.indexOf('/rest'))}/rest/notifications/rss")
#set ($rssURL = "${rssURL}?userId=$!escapetool.url($services.model.serialize($xcontext.userReference, 'default'))")
#set ($rssURL = "${rssURL}&useUserPreferences=false&displayOwnEvents=true")
<link rel="alternate" type="application/rss+xml" title="Wiki Feed RSS" href="$rssURL" />

FTR this generates a URL like:

<link rel="alternate" type="application/rss+xml" title="Wiki Feed RSS" href="/xwiki/rest/notifications/rss?userId=xwiki%3AXWiki.Admin&useUserPreferences=false&displayOwnEvents=true" />