[GH-ISSUE #5277] [Bug]: <Router basename="/panel"> is not able to match the URL #3692

Closed
opened 2026-10-31 20:34:16 +07:00 by bsakaguchi · 2 comments
Owner

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

Image

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

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
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 : "<Router basename="/panel"> is not able to match the URL "/qTwShUoBhMEqKxdZgo/panel/" because it does not start with the basename, so the <Router> 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 ```shell ``` ### Screenshots <img width="1911" height="643" alt="Image" src="https://github.com/user-attachments/assets/7c82b702-3f7a-46e7-85ce-91be8f6e2f28" /> ### 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 - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:34:16 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 13, 2026):

The error is caused by a version mismatch. There is no v3.1.3 release — the 3.1.x line shipped only v3.1.0 (May 23 2026), and the release list jumps directly to v3.2.0 (May 28 2026). Please verify your installed version:

x-ui setting -show true

Root cause confirmed in source

v3.1.0 includes the React frontend rewrite but predates the computeBasename() function (frontend/src/routes.tsx). That function, added the day after v3.1.0 was tagged and first shipped in v3.2.0, reads window.X_UI_BASE_PATH injected by the backend (internal/web/controller/dist.go, line 113) and builds the React Router basename as <webBasePath>/panel. In v3.1.0 the basename is effectively hardcoded to /panel.

When install.sh runs on a fresh system it generates a random 18-character webBasePath (e.g., qTwShUoBhMEqKxdZgo) and saves it to the database. The panel then redirects after login to /<webBasePath>/panel/. Because the v3.1.0 build ignores window.X_UI_BASE_PATH, React Router sees basename="/panel" while the browser URL is /qTwShUoBhMEqKxdZgo/panel/, and renders nothing.

Fix

Re-run the installer — it downloads the latest binary automatically (v3.3.1 as of this writing):

bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)

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 true so the exact installed version and webBasePath can be confirmed.

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:4698476846 --> @github-actions[bot] commented on GitHub (Jun 13, 2026): The error is caused by a version mismatch. There is no `v3.1.3` release — the 3.1.x line shipped only `v3.1.0` (May 23 2026), and the release list jumps directly to `v3.2.0` (May 28 2026). Please verify your installed version: ```bash x-ui setting -show true ``` **Root cause confirmed in source** `v3.1.0` includes the React frontend rewrite but predates the `computeBasename()` function (`frontend/src/routes.tsx`). That function, added the day after `v3.1.0` was tagged and first shipped in `v3.2.0`, reads `window.X_UI_BASE_PATH` injected by the backend (`internal/web/controller/dist.go`, line 113) and builds the React Router `basename` as `<webBasePath>/panel`. In `v3.1.0` the basename is effectively hardcoded to `/panel`. When `install.sh` runs on a fresh system it generates a random 18-character `webBasePath` (e.g., `qTwShUoBhMEqKxdZgo`) and saves it to the database. The panel then redirects after login to `/<webBasePath>/panel/`. Because the `v3.1.0` build ignores `window.X_UI_BASE_PATH`, React Router sees `basename="/panel"` while the browser URL is `/qTwShUoBhMEqKxdZgo/panel/`, and renders nothing. **Fix** Re-run the installer — it downloads the latest binary automatically (`v3.3.1` as of this writing): ```bash bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh) ``` 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 true` so the exact installed version and `webBasePath` can be confirmed. *This reply was generated automatically; a maintainer may follow up.*
Author
Owner

@bshnetwork commented on GitHub (Jun 13, 2026):

sorry my bad to wrote wrong number : my version is 3.3.1

Image
<!-- gh-comment-id:4698510434 --> @bshnetwork commented on GitHub (Jun 13, 2026): sorry my bad to wrote wrong number : my version is 3.3.1 <img width="707" height="442" alt="Image" src="https://github.com/user-attachments/assets/003feba7-4e48-4d7c-8381-069b95acab96" />
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3692
No description provided.