From 964e6eb3f5362964dee0ad351bc36ea5d35ec41c Mon Sep 17 00:00:00 2001 From: Arnas Udovic Date: Mon, 12 Aug 2024 17:35:41 +0300 Subject: [PATCH] redirect /r/:id action #2 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 22a681a..7a4e460 100644 --- a/main.go +++ b/main.go @@ -527,7 +527,7 @@ func renderTag(w gemini.ResponseWriter, r *gemini.Request, client TreeManagerCli func redirectAction(w gemini.ResponseWriter, r *gemini.Request, client TreeManagerClient) { urlParts := strings.Split(r.URL.Path, "/") - id := urlParts[1] + id := urlParts[2] fr := FileRequest{Id: id} file, err := client.GetFile(context.Background(), &fr)