Add missing slash in linkToBoard
This commit is contained in:
parent
137cbd6fce
commit
23169e0533
|
@ -555,7 +555,7 @@ function linkToBoard(website_name, board_name, thread_id) {
|
||||||
if (thread_id) {
|
if (thread_id) {
|
||||||
return root + `/res/${thread_id}.html`;
|
return root + `/res/${thread_id}.html`;
|
||||||
} else {
|
} else {
|
||||||
return root + 'index.html';
|
return root + '/index.html';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -664,6 +664,11 @@ function renderPostElem(post, btn_delete=false) {
|
||||||
if (post.website_name != null) {
|
if (post.website_name != null) {
|
||||||
const link_url = linkToBoard(post.website_name, post.board_name, post.thread_id);
|
const link_url = linkToBoard(post.website_name, post.board_name, post.thread_id);
|
||||||
const boardlink_a = document.createElement('a');
|
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.appendChild(text(post.website_name));
|
||||||
boardlink_a.setAttribute('href', link_url);
|
boardlink_a.setAttribute('href', link_url);
|
||||||
|
|
Loading…
Reference in New Issue