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

Remove leading slash in redirections #2399

Merged
merged 1 commit into from Jul 24, 2016
Merged

Conversation

@ChillarAnand
Copy link
Contributor

ChillarAnand commented Jul 24, 2016

No description provided.

@@ -50,7 +50,7 @@ def gen_tasks(self):
yield self.group_task()
if kw['redirections']:
for src, dst in kw["redirections"]:
src_path = os.path.join(kw["output_folder"], src)
src_path = os.path.join(kw["output_folder"], src.rstrip('/'))

This comment has been minimized.

Copy link
@Kwpolska

Kwpolska Jul 24, 2016

Member

leading slash is lstrip 😒

This comment has been minimized.

Copy link
@ChillarAnand

ChillarAnand Jul 24, 2016

Author Contributor

Duh! Updated

@ChillarAnand ChillarAnand force-pushed the ChillarAnand:redirect branch from 4d33472 to 03baa59 Jul 24, 2016
@Kwpolska
Copy link
Member

Kwpolska commented Jul 24, 2016

This is actually a good way to solve this. Thanks!

@Kwpolska Kwpolska merged commit ef69d43 into getnikola:master Jul 24, 2016
2 checks passed
2 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.