Grab port as well as host from elpher-current-page
authorKoushk Roy <kroy@twilio.com>
Wed, 3 Jun 2020 05:13:44 +0000 (22:13 -0700)
committerKoushk Roy <kroy@twilio.com>
Wed, 3 Jun 2020 05:13:44 +0000 (22:13 -0700)
elpher.el

index 56c5996..be60abf 100644 (file)
--- a/elpher.el
+++ b/elpher.el
@@ -1123,6 +1123,7 @@ For instance, the filename /a/b/../c/./d will reduce to /a/c/d"
           (if (string-empty-p (url-filename address))
               (setf (url-filename address) "/")) ;ensure empty filename is marked as absolute
         (setf (url-host address) (url-host (elpher-page-address elpher-current-page)))
+        (setf (url-port address) (url-port (elpher-page-address elpher-current-page)))
         (unless (string-prefix-p "/" (url-filename address)) ;deal with relative links
           (setf (url-filename address)
                 (concat (file-name-directory