mirror of https://codeberg.org/cage/tinmop/
- [gemini] remove redirect loop when the meta was an absolute URI.
This commit is contained in:
parent
de980b44b7
commit
d45388e4dc
|
@ -520,6 +520,8 @@
|
|||
(defmethod build-redirect-iri (meta (iri-from iri:iri))
|
||||
(let* ((meta-url (ignore-errors (iri:iri-parse meta))))
|
||||
(when meta-url
|
||||
(if (absolute-gemini-url-p meta)
|
||||
meta
|
||||
(let* ((meta-query (uri:query meta-url))
|
||||
(meta-path (uri:path meta-url))
|
||||
(meta-path-query (if meta-query
|
||||
|
@ -529,7 +531,7 @@
|
|||
(uri:host iri-from)
|
||||
(uri:port iri-from)
|
||||
(uri:path iri-from))))
|
||||
new-url))))
|
||||
new-url)))))
|
||||
|
||||
(defmethod build-redirect-iri (meta (iri-from string))
|
||||
(build-redirect-iri meta (iri:iri-parse iri-from)))
|
||||
|
|
Loading…
Reference in New Issue