mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +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:
1 parent
4f8f5b5c31
commit
72ca92224d
1 file changed
+7
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user