[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/04: Fix a uri encoding issue with linking to outputs
From: |
Christopher Baines |
Subject: |
01/04: Fix a uri encoding issue with linking to outputs |
Date: |
Wed, 9 Jun 2021 11:43:55 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository data-service.
commit f421faa790d1f3abf8a67c50f86b814e551e91bf
Author: Christopher Baines <mail@cbaines.net>
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)))))))))