mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #4247] [MERGED] chore: fix remarks shadowrocket subscription #5636
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#5636
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/4247
Author: @harryngne
Created: 5/11/2026
Status: ✅ Merged
Merged: 5/11/2026
Merged by: @MHSanaei
Base:
main← Head:main📝 Commits (1)
37b35fcchore: fix remarks shadowrocket subscription📊 Changes
3 files changed (+54 additions, -41 deletions)
View changed files
📝
frontend/src/pages/sub/SubPage.vue(+10 -1)📝
sub/subController.go(+1 -1)📝
sub/subService.go(+43 -39)📄 Description
What is the pull request?
Fixed Shadowrocket app integration for subscription links. The app was unable to recognize subscription URLs because:
subTitlesetting from panel was not being passed to the frontendChanges:
shadowrocketUrlgeneration to URL-encode the Base64 payload:shadowrocket://add/sub/${encodeURIComponent(btoa(rawUrl))}?remark=${subTitle}SubTitleandSubSupportUrlfields to backendPageDatastructBuildPageData()function to accept and return subscription title and support URLsubTitlefrom injected data and use it in the Shadowrocket deep link?or&as separator forflag=shadowrocket)Which part of the application is affected by the change?
Type of Changes
Backend (Go)
SubTitleandSubSupportUrltoPageDatastruct, updatedBuildPageData()signatureBuildPageData()to passa.subTitleanda.subSupportUrlFrontend (Vue)
subTitleandsubSupportUrlfrom injected datashadowrocketUrlcomputed property with proper encoding and remark parametersubTitle→sId→'Subscription'Client-side Legacy (JavaScript)
web/assets/js/subscription.js: UpdatedshadowrocketUrl()to URL-encode Base64 payload and handle query parameters correctlyTesting
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.