fix(sub): use standard sub://BASE64#REMARK scheme for Shadowrocket

This commit is contained in:
MHSanaei
2026-05-19 17:21:52 +02:00
parent 1b436bb3e0
commit 9f80cfedab
+1 -1
View File
@@ -125,7 +125,7 @@ const shadowrocketUrl = computed(() => {
if (!subUrl) return '';
const separator = subUrl.includes('?') ? '&' : '?';
const rawUrl = subUrl + separator + 'flag=shadowrocket';
const base64Url = encodeURIComponent(btoa(rawUrl));
const base64Url = btoa(rawUrl).replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, '');
const remark = encodeURIComponent(subTitle || sId || 'Subscription');
return `shadowrocket://add/sub/${base64Url}?remark=${remark}`;
});