From 23169e0533c628a186522d3a67747f322fb42ca0 Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Sun, 12 Nov 2023 18:27:35 -0500 Subject: [PATCH] Add missing slash in linkToBoard --- script.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index b1af195..006940e 100644 --- a/script.js +++ b/script.js @@ -555,7 +555,7 @@ function linkToBoard(website_name, board_name, thread_id) { if (thread_id) { return root + `/res/${thread_id}.html`; } else { - return root + 'index.html'; + return root + '/index.html'; } } @@ -664,6 +664,11 @@ function renderPostElem(post, btn_delete=false) { if (post.website_name != null) { const link_url = linkToBoard(post.website_name, post.board_name, post.thread_id); const boardlink_a = document.createElement('a'); + /* + * TODO: The link to the board is way too wide in the UI! + * - (Maybe) need to wrap it in an element and have it be it's usual width + */ + boardlink_a.appendChild(text(post.website_name)); boardlink_a.setAttribute('href', link_url);