summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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