mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
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:
parent
4f8f5b5c31
commit
72ca92224d
@ -557,7 +557,13 @@ def map_local_files(path):
|
|||||||
|
|
||||||
|
|
||||||
def resolve_url(url, context):
|
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 \
|
if re.match(r'https?://', url) or url.startswith('mailto:') or \
|
||||||
url.startswith('irc://'):
|
url.startswith('irc://'):
|
||||||
return url
|
return url
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user