Add missing slash in linkToBoard

This commit is contained in:
towards-a-new-leftypol 2023-11-12 18:27:35 -05:00
parent 137cbd6fce
commit 23169e0533
1 changed files with 6 additions and 1 deletions

View File

@ -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);