Another bug in resolve_ref

This commit is contained in:
Kovid Goyal 2022-08-20 11:45:48 +05:30
parent cd35f92607
commit b6760a59fa
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -56,7 +56,7 @@ def resolve_ref(ref: str, website_url: Callable[[str], str] = website_url) -> st
m = ref_map()
href = m['ref'].get(ref, '')
if href:
return href
return website_url(href)
if ref.startswith('conf-kitty-'):
href = f'{website_url("conf")}#{ref}'
elif ref.startswith('conf-kitten-'):