mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-25 15:23:45 +00:00
return None rather than '#' when no match found by slugurl
This commit is contained in:
parent
dc6e23ac53
commit
2a7324a227
1 changed files with 1 additions and 1 deletions
|
|
@ -21,4 +21,4 @@ def slugurl(context, slug):
|
|||
if page:
|
||||
return page.relative_url(context['request'].site)
|
||||
else:
|
||||
return '#'
|
||||
return None
|
||||
|
|
|
|||
Loading…
Reference in a new issue