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

Reverse change in #415; Image paths encoded before displaying instead #474

Merged
merged 1 commit into from
Jul 10, 2017

Conversation

jholmes033169
Copy link
Contributor

- Summary

PR #415 fixed the image path problem, but too deep. The fix created a problem where all images with a space in the image name ended up with "%20" in the actual persisted image name. This was because resolvePath() was obviously used in both display and persist cases (unknown to the author of the fix (me) at the time).

Instead, the image name is now encoded in EntryListing.js right before displaying.

- Test plan

Images display in cards. Uploaded images should no longer have "%20" in their names.
Posts and page types display normally.

- Description for the changelog

Image name is now encoded in EntryListing.js rather than pathHelper.js.

- A picture of a cute animal (not mandatory but encouraged)

image

@erquhart
Copy link
Contributor

erquhart commented Jul 5, 2017

@jholmes033169 mind squashing this to one commit? I'd do it, but rather not force push to your master branch.

@jholmes033169
Copy link
Contributor Author

There ya go... hope I did that right. Never squashed before.

Copy link
Contributor

@erquhart erquhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks!

Copy link
Contributor

@Benaiah Benaiah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Benaiah Benaiah merged commit cc93ad8 into decaporg:master Jul 10, 2017
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.

3 participants