The Lambda Lab
/
projects
/
elpher.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e8c010a
)
Grab port as well as host from elpher-current-page
author
Koushk Roy
<kroy@twilio.com>
Wed, 3 Jun 2020 05:13:44 +0000
(22:13 -0700)
committer
Koushk Roy
<kroy@twilio.com>
Wed, 3 Jun 2020 05:13:44 +0000
(22:13 -0700)
elpher.el
patch
|
blob
|
history
diff --git
a/elpher.el
b/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)))
(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
(unless (string-prefix-p "/" (url-filename address)) ;deal with relative links
(setf (url-filename address)
(concat (file-name-directory