[GH-ISSUE #5532] [Bug]: Client QR-code and client link do not contain client email #3859

Closed
opened 2026-10-31 20:35:29 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @it800 on GitHub (Jun 24, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5532

Describe the bug

When I create a new client, I specify a unique email address, which is then displayed in the client software as the profile name.

Before version 3.4.0, this email address was included in the client QR code and link after the trailing hash sign. In version 3.4.0, the inbound name, or remark, is used instead. Because of this, manual correction is now required.

How to reproduce the problem

  1. Open Clients.
  2. Click Add Client.
  3. Fill in all the required details and click Create.
  4. Click the client's QR code or Information link, and copy either the QR code or the link.

Expected behavior

The client's email address is expected to be used

Actual behavior

Both the QR code and the link contain the inbound remark instead of the client's email address.

Relevant logs


Screenshots

No response

3x-ui version

3.4.0

Xray-core version

26.6.22

How did you install 3x-ui?

install.sh script

Operating system

Almalinux 9

Which parts of the panel are affected?

Frontend (UI / panel pages)

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 @it800 on GitHub (Jun 24, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5532 ### Describe the bug When I create a new client, I specify a unique email address, which is then displayed in the client software as the profile name. Before version 3.4.0, this email address was included in the client QR code and link after the trailing hash sign. In version 3.4.0, the inbound name, or remark, is used instead. Because of this, manual correction is now required. ### How to reproduce the problem 1. Open Clients. 2. Click Add Client. 3. Fill in all the required details and click Create. 4. Click the client's QR code or Information link, and copy either the QR code or the link. ### Expected behavior The client's email address is expected to be used ### Actual behavior Both the QR code and the link contain the inbound remark instead of the client's email address. ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.4.0 ### Xray-core version 26.6.22 ### How did you install 3x-ui? install.sh script ### Operating system Almalinux 9 ### Which parts of the panel are affected? Frontend (UI / panel pages) ### 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:35:29 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

This is a confirmed v3.4.0 behavioral change. The client email no longer appears in the # fragment of panel-displayed share links (copy-link and QR code). The change affects every non-WireGuard protocol and both UI entry points.

What changed and where

Two code paths produce the link you see in the panel:

  1. Inbounds page QR modal (frontend/src/pages/inbounds/qr/QrCodeModal.tsx, line 85):
    The remark passed to genAllLinks() is dbInbound.remark || '' — the inbound name only, with no client email appended. The comment at frontend/src/lib/xray/inbound-link.ts:1041-1043 documents the intent:

    "the panel copy/QR remark is the inbound remark plus the externalProxy remark, dash-joined (the configurable subscription remark model was removed; subscription output uses the template)."

  2. Clients page info/QR modal (frontend/src/pages/clients/ClientInfoModal.tsx, ClientQrModal.tsx):
    Both call /panel/api/clients/subLinks/{subId}, which resolves to internal/sub/service.go:GetLink → genRemark(). At line 1640-1646, genRemark bypasses the remark template in panel-display contexts (subscriptionBody == false) and returns only fallbackRemark(inbound.Remark, extra) — the inbound name.

Note the inconsistency: QrCodeModal.tsx:61-63 explicitly includes client.email in WireGuard peer remarks (${dbInbound.remark}-${client.email}), but the non-WireGuard path does not.

Subscription imports (client app, not panel copy)

When a client app imports your subscription URL, subscriptionBody is set to true (internal/sub/controller.go:148) and the remark template applies. The default template is:

{{INBOUND}}|📊{{TRAFFIC_LEFT}}|⏳{{DAYS_LEFT}}D

This default does not include the email. To restore the email in subscription-imported links, go to Panel Settings → Subscription → Remark Template and add {{EMAIL}}, for example:

{{INBOUND}}|{{EMAIL}}|📊{{TRAFFIC_LEFT}}|⏳{{DAYS_LEFT}}D

This does not affect what the panel copy-link or QR code shows.

Panel copy-link and QR display

There is no configuration workaround for the panel's copy-link and QR display in v3.4.0; the fragment is set to the inbound remark in both frontend paths described above.


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

<!-- gh-comment-id:4788244239 --> @github-actions[bot] commented on GitHub (Jun 24, 2026): This is a confirmed v3.4.0 behavioral change. The client email no longer appears in the `#` fragment of panel-displayed share links (copy-link and QR code). The change affects every non-WireGuard protocol and both UI entry points. **What changed and where** Two code paths produce the link you see in the panel: 1. **Inbounds page QR modal** (`frontend/src/pages/inbounds/qr/QrCodeModal.tsx`, line 85): The remark passed to `genAllLinks()` is `dbInbound.remark || ''` — the inbound name only, with no client email appended. The comment at `frontend/src/lib/xray/inbound-link.ts:1041-1043` documents the intent: > "the panel copy/QR remark is the inbound remark plus the externalProxy remark, dash-joined (the configurable subscription remark model was removed; subscription output uses the template)." 2. **Clients page info/QR modal** (`frontend/src/pages/clients/ClientInfoModal.tsx`, `ClientQrModal.tsx`): Both call `/panel/api/clients/subLinks/{subId}`, which resolves to `internal/sub/service.go:GetLink` → `genRemark()`. At line 1640-1646, `genRemark` bypasses the remark template in panel-display contexts (`subscriptionBody == false`) and returns only `fallbackRemark(inbound.Remark, extra)` — the inbound name. Note the inconsistency: `QrCodeModal.tsx:61-63` explicitly includes `client.email` in WireGuard peer remarks (`${dbInbound.remark}-${client.email}`), but the non-WireGuard path does not. **Subscription imports (client app, not panel copy)** When a client app imports your subscription URL, `subscriptionBody` is set to `true` (`internal/sub/controller.go:148`) and the remark template applies. The default template is: ``` {{INBOUND}}|📊{{TRAFFIC_LEFT}}|⏳{{DAYS_LEFT}}D ``` This default does not include the email. To restore the email in subscription-imported links, go to **Panel Settings → Subscription → Remark Template** and add `{{EMAIL}}`, for example: ``` {{INBOUND}}|{{EMAIL}}|📊{{TRAFFIC_LEFT}}|⏳{{DAYS_LEFT}}D ``` This does not affect what the panel copy-link or QR code shows. **Panel copy-link and QR display** There is no configuration workaround for the panel's copy-link and QR display in v3.4.0; the fragment is set to the inbound remark in both frontend paths described above. --- *This reply was generated automatically; a maintainer may follow up.*
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#3859
No description provided.