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

Fix collections breaking if folder has trailing slash. #617

Merged
merged 1 commit into from
Sep 18, 2017

Conversation

tech4him1
Copy link
Contributor

- Summary

If the folder for a collection has a trailing slash in the config, this breaks the collection when another slash is added. This PR fixes this by trimming a trailing slash from the folder value if it exists.

Fixes #615.

- Test plan

Manually tested with config from #615 and example config.

- Description for the changelog

Fix collections breaking if folder has trailing slash.

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

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

@tech4him1 tech4him1 merged commit 62d88b9 into master Sep 18, 2017
@tech4him1 tech4him1 deleted the fix-trailing-slash branch September 18, 2017 20:37
@tech4him1 tech4him1 removed the request for review from erquhart September 18, 2017 20:37
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.

Issue with trailing slash on the _posts path
2 participants