From ccfd04219ba511b53ca5e6d408738b5b3b9533f1 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Wed, 3 Jun 2026 02:17:56 +0200 Subject: [PATCH] fix(panel): register /groups SPA route so hard refresh returns index.html The frontend has a groups page route and sidebar entry, but the backend never registered a GET handler for /panel/groups. A hard browser refresh on that page fell through to the 404 handler. Add the missing panelSPA registration alongside the other page routes. Fixes #4837 --- web/controller/xui.go | 1 + 1 file changed, 1 insertion(+) diff --git a/web/controller/xui.go b/web/controller/xui.go index fcb80a5c..d7d68c7e 100644 --- a/web/controller/xui.go +++ b/web/controller/xui.go @@ -39,6 +39,7 @@ func (a *XUIController) initRouter(g *gin.RouterGroup) { g.GET("/", a.panelSPA) g.GET("/inbounds", a.panelSPA) g.GET("/clients", a.panelSPA) + g.GET("/groups", a.panelSPA) g.GET("/nodes", a.panelSPA) g.GET("/settings", a.panelSPA) g.GET("/xray", a.panelSPA)