Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way to set guid isPermaLink attribute #191

Open
mjgs opened this issue Jul 22, 2023 · 2 comments
Open

Way to set guid isPermaLink attribute #191

mjgs opened this issue Jul 22, 2023 · 2 comments

Comments

@mjgs
Copy link

mjgs commented Jul 22, 2023

Seems to me that non url GUIDs would be more portable. However I’m getting the following error from feed validators:

guid must be a full URL, unless isPermaLink attribute is false: 22e86428-9533-4017-a4db-c468754b9304 (50 occurrences)       

<guid>22e86428-9533-4017-a4db-c468754b9304</guid>

I didn’t find anything relevant in the documentation or code.

Is there a way to set the guid guid isPermaLink attribute?

@woutrbe
Copy link

woutrbe commented Mar 22, 2024

I've also been looking for a way to do this. It seems there is a PR #89, but it's been open for years without activity.

I think if you want a quick solution, you can probably apply a quick regex on the output yourself.

EDIT: Apologies, I also didn't realize this issue had been open since last year.

@JonZhang3
Copy link

Hi @mjgs , you can try this library that solves the issue you mentioned.
@gaphub/feed
@gaphub/feed will automatically determine if the input id is a url, and if not, it will add the isPermaLink='false' attribute to the final xml

Tip: The guid field is cancelled and the id field is used uniformly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants