mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5277] [Bug]: <Router basename="/panel"> is not able to match the URL #3692
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#3692
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 @bshnetwork on GitHub (Jun 13, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5277
Describe the bug
hi
when try to open the web page after entering username and password i go to white page and nothing happen.
this error :
" is not able to match the URL "/qTwShUoBhMEqKxdZgo/panel/" because it does not start with the basename, so the won't render anything."
How to reproduce the problem
i did :
uninstall and install again
but nothing fix
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
3x-ui version
3.1.3
Xray-core version
No response
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)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Jun 13, 2026):
The error is caused by a version mismatch. There is no
v3.1.3release — the 3.1.x line shipped onlyv3.1.0(May 23 2026), and the release list jumps directly tov3.2.0(May 28 2026). Please verify your installed version:Root cause confirmed in source
v3.1.0includes the React frontend rewrite but predates thecomputeBasename()function (frontend/src/routes.tsx). That function, added the day afterv3.1.0was tagged and first shipped inv3.2.0, readswindow.X_UI_BASE_PATHinjected by the backend (internal/web/controller/dist.go, line 113) and builds the React Routerbasenameas<webBasePath>/panel. Inv3.1.0the basename is effectively hardcoded to/panel.When
install.shruns on a fresh system it generates a random 18-characterwebBasePath(e.g.,qTwShUoBhMEqKxdZgo) and saves it to the database. The panel then redirects after login to/<webBasePath>/panel/. Because thev3.1.0build ignoreswindow.X_UI_BASE_PATH, React Router seesbasename="/panel"while the browser URL is/qTwShUoBhMEqKxdZgo/panel/, and renders nothing.Fix
Re-run the installer — it downloads the latest binary automatically (
v3.3.1as of this writing):Your existing database (
/etc/x-ui/x-ui.db) and settings are preserved across the upgrade. After the installer completes, use the credentials and access URL it prints.If you have already re-run the installer and still see
v3.1.0, that suggests the download step failed silently. Check internet connectivity from the server and re-run the installer, watching for any download error messages.Clarification needed: please share the output of
x-ui setting -show trueso the exact installed version andwebBasePathcan be confirmed.This reply was generated automatically; a maintainer may follow up.
@bshnetwork commented on GitHub (Jun 13, 2026):
sorry my bad to wrote wrong number : my version is 3.3.1