mirror of https://codeberg.org/cage/tinmop/
- [GUI] prevented to transform to an absolute URL an already absolute URL.
This commit is contained in:
parent
8aecf478b4
commit
676cf0759f
|
@ -338,15 +338,17 @@
|
|||
(to-s copy)))
|
||||
|
||||
(defun absolutize-link (request-iri link-value)
|
||||
(let ((parsed-request-iri (iri:iri-parse request-iri)))
|
||||
(multiple-value-bind (x host path query port y w z)
|
||||
(gemini-client:displace-iri parsed-request-iri)
|
||||
(declare (ignore x y w z))
|
||||
(gemini-parser:absolutize-link link-value
|
||||
host
|
||||
port
|
||||
path
|
||||
query))))
|
||||
(if (iri:absolute-url-p link-value)
|
||||
link-value
|
||||
(let ((parsed-request-iri (iri:iri-parse request-iri)))
|
||||
(multiple-value-bind (x host path query port y w z)
|
||||
(gemini-client:displace-iri parsed-request-iri)
|
||||
(declare (ignore x y w z))
|
||||
(gemini-parser:absolutize-link link-value
|
||||
host
|
||||
port
|
||||
path
|
||||
query)))))
|
||||
|
||||
(defun slurp-iri (main-window iri)
|
||||
(if (not (iri:absolute-url-p iri))
|
||||
|
|
Loading…
Reference in New Issue