You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's often useful to get the URL string without its scheme, but Quri makes it surprisingly difficult. Maybe add a helper?
(defunschemeless-url (url) ; Inspired by `quri:render-uri'."Return URL without its scheme (e.g. it removes 'https://').";; Warning: We can't just set `quri:uri-scheme' to nil because that would;; change the port (e.g. HTTP defaults to 80, HTTPS to 443).
(formatnil"~@[~A~]~@[~A~]~@[?~A~]~@[#~A~]"
(quri:uri-authority url)
(or (quri:uri-path url) "/")
(quri:uri-query url)
(quri:uri-fragment url)))
The text was updated successfully, but these errors were encountered:
It's often useful to get the URL string without its scheme, but Quri makes it surprisingly difficult. Maybe add a helper?
The text was updated successfully, but these errors were encountered: