summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/catalog-link.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/catalog-link.js b/js/catalog-link.js
index a8b8a0a8..124a3e9a 100644
--- a/js/catalog-link.js
+++ b/js/catalog-link.js
@@ -4,7 +4,12 @@ function catalog() {
var board = $("input[name='board']");
if (board.length>0) {
+if (window.location.href.indexOf("/res/")==-1){ //if we are inside a thread
var catalog_url = 'catalog.html';
+}
+else {
+var catalog_url = '../catalog.html';
+}
var pages = document.getElementsByClassName('pages')[0];
var bottom = document.getElementsByClassName('boardlist bottom')[0]
var subtitle = document.getElementsByClassName('subtitle')[0];