From ce4a19b0017ac6a2b8e989905203a48604d77b2e Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Thu, 14 Aug 2025 08:54:13 +0200 Subject: [PATCH] fix link to bot documentation page readthedocs -> docs.intelmq.org and don't replace ._ with -, the anchors all are equal to the module name --- CHANGELOG.md | 1 + intelmq_manager/static/js/configs.js | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2dc49e..4b73e07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ CHANGELOG ### Configuration - Sort bots alphabetically in side menu (PR#298 by Psych0meter). +- Fix link to the bot documentation page (PR#310 by Sebastian Wagner, fixes #307). 3.3.0 (2024-03-01) ------------------ diff --git a/intelmq_manager/static/js/configs.js b/intelmq_manager/static/js/configs.js index f50c4ce..412aeb5 100644 --- a/intelmq_manager/static/js/configs.js +++ b/intelmq_manager/static/js/configs.js @@ -93,7 +93,7 @@ function load_bots(config) { sortedGroupKeys.forEach(key => { sortedGroup[key] = group[key]; }); - + for (let bot_name in sortedGroup) { let bot = group[bot_name]; let $bot = $bot_group.find("ul > li:first").clone().appendTo($("ul", $bot_group)) @@ -356,8 +356,7 @@ function fill_bot(id, group, name) { insertKeyValue(key, value, BORDER_TYPES.RUNTIME, true); } - const modulename = bot.module.replace(/\./g, "-").replace(/_/g, "-"); - documentation.href = `https://intelmq.readthedocs.org/en/maintenance/user/bots.html#${modulename}`; + documentation.href = `https://docs.intelmq.org/latest/user/bots/#${bot.module}`; popup.setAttribute('class', "with-bot"); }