cbaines pushed a commit to branch master
in repository data-service.

commit f421faa790d1f3abf8a67c50f86b814e551e91bf
Author: Christopher Baines <[email protected]>
AuthorDate: Wed Jun 9 10:28:01 2021 +0100

    Fix a uri encoding issue with linking to outputs
---
 guix-data-service/web/view/html.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/guix-data-service/web/view/html.scm 
b/guix-data-service/web/view/html.scm
index f22595b..024eeda 100644
--- a/guix-data-service/web/view/html.scm
+++ b/guix-data-service/web/view/html.scm
@@ -683,7 +683,10 @@
           ,@(map (match-lambda
                    ((output-name path hash-algorithm hash recursive?)
                     `(tr
-                      (td (a (@ (href ,path))
+                      (td (a (@ (href ,(string-join
+                                        (map uri-encode
+                                             (string-split path #\/))
+                                        "/")))
                              ,(display-store-item-short path))))))
                  derivation-outputs)))))))))
 

Reply via email to