mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6575] [Bug]: Subscription: ?serverDescription= in client external links (kind=link) gets percent-encoded, Happ subtitle is lost #4407
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#4407
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 @runovs on GitHub (Sep 16, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6575
Describe the bug
Happ shows a subtitle under the server name when the link fragment is
#<name>?serverDescription=<base64>(documented by Happ; 3x-ui already keeps it literal for inbound/host links since #6488).For client external links (
POST /panel/api/clients/{email}/externalLinks,kind: "link") the fragment is stored correctly, but the generated subscription re-encodes it:?becomes%3Fand/inside the base64 becomes%2F. Happ no longer recognises the parameter and the subtitle disappears. The same link imported into Happ manually (not via the subscription) shows the subtitle correctly.#6488 added
strings.Cuthandling of?serverDescription=inappendQueryAndFragmentfor links built from inbounds/hosts. External link rows appear to go through a different path that escapes the whole fragment. Applying the same split there (escape only the name, keep?serverDescription=<base64>literal, validate the tail for#,&, spaces and newlines) would fix it.External links are the main use case for operators who aggregate servers from several sources, so hosts-level
serverDescriptiondoes not cover them.How to reproduce the problem
POST /panel/api/clients/{email}/externalLinks(or the client's "Links" tab):GET /panel/api/clients/get/{email}— the value is stored unchanged.?serverDescription=is escaped to%3FserverDescription=.vless://link into Happ directly — the subtitle is shown.Expected behavior
The name part may be percent-encoded, but
?serverDescription=and its base64 value stay literal:Actual behavior
Happ does not show the subtitle.
Relevant logs
Screenshots
3x-ui version
3.7.0
Xray-core version
26.7.28
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 24.04
Which parts of the panel are affected?
Subscription (share links / Clash / JSON)
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting