Skip to content

Commit

Permalink
Remove leading slash in redirections
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillarAnand committed Jul 24, 2016
1 parent 95c3d61 commit 4d33472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/plugins/task/redirect.py
Expand Up @@ -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('/'))
yield utils.apply_filters({
'basename': self.name,
'name': src_path,
Expand Down

0 comments on commit 4d33472

Please sign in to comment.