Fix warning from extlinks

This commit is contained in:
Kovid Goyal 2022-05-31 12:47:49 +05:30
parent bece99941d
commit 909ab3723f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -180,7 +180,7 @@ html_context['homepage_url'] = website
if needs_localization: if needs_localization:
html_context['homepage_url'] = localize_website_link(html_context['homepage_url']) html_context['homepage_url'] = localize_website_link(html_context['homepage_url'])
extlinks = { extlinks = {
'website_base': (website, None), 'website_base': (f'{website}/%s', None),
'website': (html_context['homepage_url'] + '/%s', None), 'website': (html_context['homepage_url'] + '/%s', None),
'download_file': (f'{website}/downloads/%s', '%s'), 'download_file': (f'{website}/downloads/%s', '%s'),
} }