diff options
author | Marius Bakke <marius@gnu.org> | 2022-09-18 16:30:21 +0200 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2022-09-18 16:30:21 +0200 |
commit | 80c76f5d8eaa0aff40c08eac19a62e0e7957a7c8 (patch) | |
tree | 68938c2e5ed14adc2af9ef9be6691b1948175f39 /guix/gnu-maintenance.scm | |
parent | cbe461f2d497554fd667429cd9db5ee990c7fadb (diff) | |
parent | 2266ec5eb1bcc2c87baa27297a4205eebf325424 (diff) |
Merge branch 'staging' into core-updates
Diffstat (limited to 'guix/gnu-maintenance.scm')
-rw-r--r-- | guix/gnu-maintenance.scm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/guix/gnu-maintenance.scm b/guix/gnu-maintenance.scm index e7edbf6656..1ffa408666 100644 --- a/guix/gnu-maintenance.scm +++ b/guix/gnu-maintenance.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2012, 2013 Nikita Karetnikov <nikita@karetnikov.org> ;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com> +;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be> ;;; ;;; This file is part of GNU Guix. ;;; @@ -499,6 +500,12 @@ are unavailable." (base-url (string-append base-url directory)) (url (cond ((and=> (string->uri url) uri-scheme) ;full URL? url) + ;; full URL, except for URI scheme. Reuse the URI + ;; scheme of the document that contains the link. + ((string-prefix? "//" url) + (string-append + (symbol->string (uri-scheme (string->uri base-url))) + ":" url)) ((string-prefix? "/" url) ;absolute path? (let ((uri (string->uri base-url))) (uri->string |