about summary refs log tree commit diff stats
path: root/src/local/pager.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/local/pager.nim')
-rw-r--r--src/local/pager.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim
index 1da7797d..bf37b097 100644
--- a/src/local/pager.nim
+++ b/src/local/pager.nim
@@ -755,8 +755,9 @@ proc loadURL*(pager: Pager, url: string, ctype = none(string),
     pager.gotoURL(newRequest(firstparse.get), prev, ctype, cs)
     return
   var urls: seq[URL]
-  if pager.config.network.prepend_https and url[0] != '/':
-    let pageurl = parseURL("https://" & url)
+  if pager.config.network.prepend_https and
+      pager.config.network.prepend_scheme != "" and url[0] != '/':
+    let pageurl = parseURL(pager.config.network.prepend_scheme & url)
     if pageurl.isSome: # attempt to load remote page
       urls.add(pageurl.get)
   let cdir = parseURL("file://" & percentEncode(getCurrentDir(), LocalPathPercentEncodeSet) & DirSep)