From 54f712f294ea8d1abe2800040fb881d843951373 Mon Sep 17 00:00:00 2001 From: videogame hacker Date: Tue, 26 Jul 2022 05:08:00 +0100 Subject: [PATCH] Easier copy-linking for shortened URLs --- static/js/shorten.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/shorten.js b/static/js/shorten.js index 90c1be8..b531ec3 100644 --- a/static/js/shorten.js +++ b/static/js/shorten.js @@ -13,7 +13,11 @@ const populateRedirects = async (redirKey) => { for (const redirect of redirects) { body.appendChild( h("tr", {}, [ - h("td", {}, h("pre", {}, [redirect.path])), + h( + "td", + {}, + h("a", { href: "/" + redirect.path }, [h("pre", {}, [redirect.path])]) + ), h( "td", {},