From f429baac42b845de4f47cbacd103198fcba95d50 Mon Sep 17 00:00:00 2001 From: Brendan O'Brien Date: Fri, 18 Nov 2022 13:30:56 -0500 Subject: [PATCH] fix: breadcrumb links in gateway directory template (#513) --- iroh-gateway/src/handlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iroh-gateway/src/handlers.rs b/iroh-gateway/src/handlers.rs index 6fb6d44115..ebc7f92e06 100644 --- a/iroh-gateway/src/handlers.rs +++ b/iroh-gateway/src/handlers.rs @@ -688,7 +688,7 @@ async fn serve_fs_dir( let mut el = HashMap::new(); let path = match accum.last() { Some(prev) => match prev.get("path") { - Some(base) => format!("/{}/{}", base, encode(path_el)), + Some(base) => format!("{}/{}", base, encode(path_el)), None => format!("/{}", encode(path_el)), }, None => {