Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix: add support route to the base route for private routes (#6688)

Vikrant Gupta2c2e248c9561
diff --git a/frontend/src/AppRoutes/Private.tsx b/frontend/src/AppRoutes/Private.tsx
index 77bacc6728..c689786fcc 100644
--- a/frontend/src/AppRoutes/Private.tsx
+++ b/frontend/src/AppRoutes/Private.tsx
@@ -18,6 +18,7 @@ import routes, {
LIST_LICENSES,
oldNewRoutesMapping,
oldRoutes,
+ SUPPORT_ROUTE,
} from './routes';
function PrivateRoute({ children }: PrivateRouteProps): JSX.Element {
@@ -37,7 +38,7 @@ function PrivateRoute({ children }: PrivateRouteProps): JSX.Element {
const mapRoutes = useMemo(
() =>
new Map(
- [...routes, LIST_LICENSES].map((e) => {
+ [...routes, LIST_LICENSES, SUPPORT_ROUTE].map((e) => {
const currentPath = matchPath(pathname, {
path: e.path,
});
@@ -160,6 +161,7 @@ function PrivateRoute({ children }: PrivateRouteProps): JSX.Element {
pathname: redirectUrl,
};
history.replace(newLocation);
+ return;
}
// if the current route
if (currentRoute) {
diff --git a/frontend/src/AppRoutes/routes.ts b/frontend/src/AppRoutes/routes.ts
index dbe0fc6be4..f1490ec74e 100644
--- a/frontend/src/AppRoutes/routes.ts
+++ b/frontend/src/AppRoutes/routes.ts
@@ -427,7 +427,6 @@ export const LIST_LICENSES: AppRoutes = {
export const oldRoutes = [
'/pipelines',
- '/logs/old-logs-explorer',
'/logs-explorer',
'/logs-explorer/live',
'/logs-save-views',
@@ -437,7 +436,6 @@ export const oldRoutes = [
export const oldNewRoutesMapping: Record<string, string> = {
'/pipelines': '/logs/pipelines',
- '/logs/old-logs-explorer': '/logs/old-logs-explorer',
'/logs-explorer': '/logs/logs-explorer',
'/logs-explorer/live': '/logs/logs-explorer/live',
'/logs-save-views': '/logs/saved-views',