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 double-slash bug when baseurl is set to /. #27

Merged
merged 4 commits into from
Mar 24, 2017
Merged

Conversation

fotinakis
Copy link
Contributor

In the filesystem loader, if baseurl was set to / or had a trailing slash like /url-prefix/, it would create URLs like /url-prefix//index.html which would break rendering. This fixes that bug.

@fotinakis fotinakis requested a review from timhaines March 23, 2017 19:10
Copy link
Contributor

@timhaines timhaines left a comment

Choose a reason for hiding this comment

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

LGTM. I'd like to see a spec added for the use case that was failing though, and one for no '/' in the base_url.

@fotinakis
Copy link
Contributor Author

Added tests for base_url variants, will merge after tests pass.

@fotinakis fotinakis merged commit 8bb7d30 into master Mar 24, 2017
@fotinakis fotinakis deleted the fix-baseurl-bug branch March 24, 2017 23:04
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.

2 participants