Skip to content

Commit

Permalink
Do not strip trailing slash in slug magic links
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Sep 18, 2017
1 parent a9c0889 commit 6042ccb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -24,6 +24,7 @@ Features
Bugfixes
--------

* Do not strip trailing slash in ``slug`` magic links
* Ignore empty tags in HTML metadata reader (Issue #2890)
* Do not remove doctype if ``add_header_permalinks`` or
``deduplicate_ids`` are used
Expand Down
2 changes: 1 addition & 1 deletion nikola/nikola.py
Expand Up @@ -1816,7 +1816,7 @@ def slug_path(self, name, lang):
else:
if len(results) > 1:
utils.LOGGER.warning('Ambiguous path request for slug: {0}'.format(name))
return [_f for _f in results[0].permalink(lang).split('/') if _f]
return [_f for _f in results[0].permalink(lang).split('/')]

def filename_path(self, name, lang):
"""Link to post or page by source filename.
Expand Down

0 comments on commit 6042ccb

Please sign in to comment.