From 8294c80d79f452a68b2dcee5e0db22bd26875e8c Mon Sep 17 00:00:00 2001
From: Shahanur Islam Shagor
Date: Wed, 19 Aug 2026 10:35:20 +0300
Subject: [PATCH] Revert "Fix admin infrastructure sidebar routes across
deployments"
---
frontend/.htaccess | 10 ----------
frontend/admin/callingPush.jsx | 2 +-
frontend/admin/sidebarTools.js | 8 ++++----
3 files changed, 5 insertions(+), 15 deletions(-)
diff --git a/frontend/.htaccess b/frontend/.htaccess
index b6275ebb..0e9fe4fe 100644
--- a/frontend/.htaccess
+++ b/frontend/.htaccess
@@ -3,16 +3,6 @@ RewriteEngine On
# If Apache is serving this repository root, route public web requests
# to the generated frontend assets under client/public.
-# Standalone admin tool pages. Keep these before the generic admin SPA rule.
-RewriteCond %{REQUEST_URI} !^/client/public/
-RewriteRule ^admin/storage/?$ client/public/admin/storage.html [L]
-RewriteCond %{REQUEST_URI} !^/client/public/
-RewriteRule ^admin/calling/?$ client/public/admin/calling.html [L]
-RewriteCond %{REQUEST_URI} !^/client/public/
-RewriteRule ^admin/calling-push/?$ client/public/admin/calling-push.html [L]
-RewriteCond %{REQUEST_URI} !^/client/public/
-RewriteRule ^admin/social-auth/?$ client/public/admin/social-auth.html [L]
-
# Admin subdomain SPA entry.
RewriteCond %{HTTP_HOST} ^admin\. [NC]
RewriteCond %{REQUEST_URI} !^/client/public/
diff --git a/frontend/admin/callingPush.jsx b/frontend/admin/callingPush.jsx
index 4b75da10..48a6321f 100644
--- a/frontend/admin/callingPush.jsx
+++ b/frontend/admin/callingPush.jsx
@@ -199,7 +199,7 @@ function CallingPushAdmin() {
-
+
← Calling
diff --git a/frontend/admin/sidebarTools.js b/frontend/admin/sidebarTools.js
index e3319acd..b79cb28f 100644
--- a/frontend/admin/sidebarTools.js
+++ b/frontend/admin/sidebarTools.js
@@ -1,8 +1,8 @@
const TOOL_LINKS = [
- { label: 'Native Call Push', href: '/admin/calling-push.html' },
- { label: 'Calling & WebRTC', href: '/admin/calling.html' },
- { label: 'FTP Storage', href: '/admin/storage.html' },
- { label: 'Social Login', href: '/admin/social-auth.html' },
+ { label: 'Native Call Push', href: '/admin/calling-push' },
+ { label: 'Calling & WebRTC', href: '/admin/calling' },
+ { label: 'FTP Storage', href: '/admin/storage' },
+ { label: 'Social Login', href: '/admin/social-auth' },
];
let observer = null;