diff --git a/thread/js/main.js b/thread/js/main.js index 4632389..8262e06 100644 --- a/thread/js/main.js +++ b/thread/js/main.js @@ -3,6 +3,7 @@ const threadUnroll = { initPage: function () { var params = new URLSearchParams(window.location.search); if (params.size <= 1) { + document.location = "../"; } else { var instanceUri = params.get("uri"); var statusID = params.get("id"); @@ -11,6 +12,7 @@ const threadUnroll = { threadUnroll.initApi(instanceUri); threadUnroll.getAllStatuses(statusID, [], threadUnroll.drawstatuses); } else { + document.location = "../"; } } },