forem
forem copied to clipboard
RSS Link and GUID URL have an extra slash in the URL
Describe the bug
- URLs in the Link and GUID field in RSS have an extra slash,
https://dev.to//simo97/djangos-world-cms-1aec
To Reproduce Steps to reproduce the behavior:
- Go to https://dev.to/feed/shindakun
- Notice the GUID and Link for each RSS entry (see screenshot)
Expected behavior
Slash should not be there.
Screenshots

Desktop (please complete the following information):
- OS: MacOS
- Browser Chrome
- Version 72.0.3626.119
Suspected Cause
- Looks like it's caused by an extra slash in feed.rss.builder.
https://github.com/thepracticaldev/dev.to/blob/7d6c85a29490cab49558ea03a5669eea2f0f458c/app/views/articles/feed.rss.builder#L17-L18
Will try to test locally once I'm home this evening, can have a PR up as soon as it's confirmed and approved.
Hit the nail on the head there! ✅ Yep, there's an extra slash since the first character of article.path is /.