From 676fdba2dcfd2c2021e853fe04eef0df9ce643b0 Mon Sep 17 00:00:00 2001 From: Jordi Enric Date: Mon, 10 Feb 2025 18:22:58 +0100 Subject: [PATCH] add default redirect --- apps/studio/components/layouts/LogsLayout/LogsLayout.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/studio/components/layouts/LogsLayout/LogsLayout.tsx b/apps/studio/components/layouts/LogsLayout/LogsLayout.tsx index f0a10fb7ec7..85d862d9ac3 100644 --- a/apps/studio/components/layouts/LogsLayout/LogsLayout.tsx +++ b/apps/studio/components/layouts/LogsLayout/LogsLayout.tsx @@ -38,6 +38,10 @@ const LogsLayout = ({ title, children }: PropsWithChildren) => query: { ref }, }) } + + if (last5chars === '/logs' && !lastLogsPage) { + router.push('/logs/explorer') + } }, [router, lastLogsPage, ref]) if (!canUseLogsExplorer) {