From 53d6a6ff0e513ff6a5e891b88546bd9fc7848dae Mon Sep 17 00:00:00 2001 From: Martijn Vegter Date: Wed, 3 Jun 2020 17:53:17 +0200 Subject: [PATCH] feat(ui): redirect to overview if no tag id is provided --- lib/public/views/Tags/Details/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/public/views/Tags/Details/index.js b/lib/public/views/Tags/Details/index.js index da9d7bdbe3..36f94f1eb4 100644 --- a/lib/public/views/Tags/Details/index.js +++ b/lib/public/views/Tags/Details/index.js @@ -27,6 +27,11 @@ const tagDetails = (model) => { const data = model.tags.getTag(); const dataLogs = model.tags.getLogsOfTag(); + if (!model.router.params.id) { + model.router.go('?page=tag-overview'); + return; + } + if (!model.router.params.panel) { model.router.go(targetURL(model, 'panel', 'PanelButton1'), true); return;