summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Mayer <entroP@gmail.com>2023-04-20 11:41:00 +0200
committerGitHub <noreply@github.com>2023-04-20 11:41:00 +0200
commit86f62d0a92ad78df36aac9f5837d4f2715535421 (patch)
treee13d593222529eb98885ec41f1ae79853e8e022a
parent208332c0e6441b1975ffb3a9de4137e578a1ecfd (diff)
parent8bb9e0da484cb944e216726a32e010ab59bed971 (diff)
downloadpelican-master.tar.gz
Merge pull request #2963 from geoffff/masterHEADmaster
-rw-r--r--pelican/paginator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pelican/paginator.py b/pelican/paginator.py
index 7e738fe3..4231e67b 100644
--- a/pelican/paginator.py
+++ b/pelican/paginator.py
@@ -155,7 +155,7 @@ class Page:
# changed to lstrip() because that would remove all leading slashes and
# thus make the workaround impossible. See
# test_custom_pagination_pattern() for a verification of this.
- if ret[0] == '/':
+ if ret.startswith('/'):
ret = ret[1:]
return ret