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

Conversation

ChillarAnand
Copy link
Contributor

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('/'))
Copy link
Member

Choose a reason for hiding this comment

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

leading slash is lstrip 😒

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Duh! Updated

@Kwpolska
Copy link
Member

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

@Kwpolska Kwpolska merged commit ef69d43 into getnikola:master Jul 24, 2016
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.

None yet

2 participants