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

RSS: Don't add trailing '/' to post image #4970

Merged
merged 1 commit into from
Mar 3, 2015

Conversation

felixrieseberg
Copy link
Member

Closes #4888

We automatically added a trailing slash to all non-absolute paths in
RSS, including post images. This fix ensures that trailing slashes
aren’t added to absolute paths including ‘content/images/‘.


if (parsed.pathname && parsed.pathname.slice(-1) !== '/') {
if (path && path.slice(-1) !== '/' && path.indexOf('content/images/') === -1) {

This comment was marked as abuse.

This comment was marked as abuse.

Closes TryGhost#4888

We automatically added a trailing slash to all non-absolute paths in
RSS, including post images. This fix ensures that trailing slashes
aren’t added to absolute paths including ‘content/images/‘.
@felixrieseberg
Copy link
Member Author

Updated; we're now just getting rid of the trailing slash addition altogether.

ErisDS added a commit that referenced this pull request Mar 3, 2015
RSS: Don't add trailing '/' to post image
@ErisDS ErisDS merged commit 8432215 into TryGhost:master Mar 3, 2015
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

Successfully merging this pull request may close these issues.

Include Post Cover Images in RSS
3 participants