Skip to content
This repository was archived by the owner on Apr 17, 2021. It is now read-only.

Commit 497801e

Browse files
committed
feat: allow empty anchor
1 parent 1053a9f commit 497801e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bootstrap_pagination/templatetags/bootstrap_pagination.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def get_page_url(page_num, current_app, url_view_name, url_extra_args, url_extra
4444
if (len(url_get_params) > 0):
4545
url += '?' + url_get_params.urlencode()
4646

47-
if (url_anchor):
47+
if (url_anchor is not None):
4848
url += '#' + url_anchor
4949

5050
return url

0 commit comments

Comments
 (0)