Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

Feed plugin : twig template removing `</link>`

Solved by unefamilleavelo View solution

Started by unefamilleavelo 2 years ago · 6 replies · 199 views
2 years ago

Hi,

I have installed the "feed" pluging but generated rss feed is invalid. After analyzing, the twig template contains this code:

TWIG
<link>{{ page.url(true) }}</link>

The resulting output is missing the </link> string. It looks like some process is removing it. Any other string is fine, but </link> is automatically removed after some parsing. How can I fix this please ?

2 years ago

Try disabling other plugins and see if the issue is still there

2 years ago

Thanks, I have tried that, one by one, but none of the other plugins seems to impact this.

2 years ago

I would try to debug the "feed" plugin itself in such case. Or report the issue on plugins GitHub repo

2 years ago

Backlinking is always appreciated in such cases. On both sides

2 years ago Solution

I have started a brand new instance of Grav, added all plugings, set the parameters, copied all pages. Everything works fine. I still can't figure out what was wrong with the previous instance but I will close this thread.

👍 1

Suggested topics

Topic Participants Replies Views Activity
General · by jean-louis67, 3 weeks ago
2 308 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 311 3 weeks ago
General · by Veehem, 4 weeks ago
0 263 4 weeks ago
General · by milkboy, 4 weeks ago
0 265 4 weeks ago
General · by ian russell, 1 month ago
2 335 1 month ago