doc: wikiparser: Add note about some incorrect links

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2020-08-27 15:16:03 -07:00 committed by James Valleroy
parent 4f8f5b5c31
commit 72ca92224d
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -557,7 +557,13 @@ def map_local_files(path):
def resolve_url(url, context):
"""Expand a URL into a full path."""
"""Expand a URL into a full path.
XXX: Links inside the included pages are resolved properly. However,
without the original path of a page, links in page can't always be resolved
correctly. Preserve the original path information.
"""
if re.match(r'https?://', url) or url.startswith('mailto:') or \
url.startswith('irc://'):
return url