Skip to content

Commit 03b1fce

Browse files
committed
Return values from Nikola.path should be str
1 parent e15f2b9 commit 03b1fce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nikola/nikola.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1928,7 +1928,7 @@ def path(self, kind, name, lang=None, is_link=False, **kwargs):
19281928
return link
19291929
else:
19301930
# URLs should always use forward slash separators, even on Windows
1931-
return pathlib.PurePosixPath(*path)
1931+
return str(pathlib.PurePosixPath(*path))
19321932

19331933
def post_path(self, name, lang):
19341934
"""Link to the destination of an element in the POSTS/PAGES settings.

0 commit comments

Comments
 (0)