mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4837] [Bug]: Refreshing the page in the browser with the Groups tab open returns a 404 error. #3368
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3368
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Ramazik on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4837
Describe the bug
I noticed this error back in version 3.2. If I open the 3x-ui panel in the Groups section and then try refreshing the browser page (CTRL+R in MS Edge), the page doesn't refresh as expected, but displays "HTTP ERROR 404 - Web page not found for the web address: https://panel.site.com:5555/G56ZGDFH45jj456/panel/groups" (domain name changed for example purposes).
This doesn't happen with other pages of other menu items.
How to reproduce the problem
The explanation is given above.
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.2.6
Xray-core version
26.6.1
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 24.04
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
MS Edge148.0.3967.96 (Windows 11 Pro 25H2)
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Jun 3, 2026):
Thanks for the clear report — this is a confirmed backend routing bug.
Root cause
When you open
/panel/groupsthrough the React SPA (client-side navigation), the browser never actually fetches that URL from the server, so it works fine. But when you press F5 / Ctrl+R, the browser sends a fresh GET request directly to the server for the path/<basepath>/panel/groups. The Go/Gin backend has no registered handler for that path, so it falls through to the globalNoRoute404 handler.You can see the registered SPA routes in
web/controller/xui.go(lines 39–45):/groupsis simply missing from this list. Every other menu entry has a matchingg.GET(...)registration so the server can returnindex.htmland let React Router take over —/groupsdoes not.Fix
Adding
g.GET("/groups", a.panelSPA)to that block inweb/controller/xui.go(after the/api-docsline) is all that is needed. A pull request would be very welcome.@MHSanaei commented on GitHub (Jun 3, 2026):
Fixed in commit
ccfd0421— added the missingg.GET("/groups", a.panelSPA)registration inweb/controller/xui.goso a hard refresh on the Groups page returns the SPA shell instead of a 404. Thanks for the report!