mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6049] [MERGED] fix(sub): preserve external link names in Clash/JSON #6062
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#6062
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?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6049
Author: @H-TTTTT
Created: 7/20/2026
Status: ✅ Merged
Merged: 7/21/2026
Merged by: @MHSanaei
Base:
main← Head:fix/external-link-names📝 Commits (1)
26bdb40fix(sub): preserve external link names in Clash/JSON📊 Changes
3 files changed (+85 additions, -6 deletions)
View changed files
📝
frontend/src/pages/clients/ClientFormModal.tsx(+11 -2)📝
internal/sub/external_config.go(+45 -4)📝
internal/sub/external_config_test.go(+29 -0)📄 Description
Summary
expandEntrynow keeps proxy names from external subscription entries (#fragment/ vmessps) instead of clearing them to\"\".remarkwhen set, otherwise the link's original name — Clash/JSON no longer fall back to the client email.remarkfor external link rows (was hardcoded to'').Root cause
remark: ''on submit.expandEntrysetName: \"\"for subscription kind.ext.EmailwhenNamewas empty.Test plan
go test ./internal/sub/ -run 'TestExpandEntry|TestLinkDisplayName|TestApplyRemark'#fragment/psapplyRemarkToLink)Fixes #6032
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.