fix: use absolute URL in in-app download guide
All checks were successful
Deploy Staging (terry-wallet-login) / deploy (push) Successful in 1m10s

Production builds the frontend with VITE_API_URL="" so attachmentDownloadUrl() returns a relative path like /apnew/api/.../download. Pasting that into Safari from another origin fails. Convert the URL to an absolute one (window.location.origin + path) before showing it in the in-app browser guide, and update the modal text in all 7 locales to make clear the copied link is the direct file download URL that, when opened in the system browser, triggers the download automatically.
This commit is contained in:
TerryM
2026-06-05 19:10:44 +08:00
parent 7a33a62c8f
commit 356d8a0207
8 changed files with 52 additions and 41 deletions

View File

@@ -270,14 +270,14 @@ export const jaDict: Dict = {
backToHome: "ホームへ戻る",
inAppDownloadTitle: "システムブラウザで開いてダウンロードしてください",
inAppDownloadIntro:
"現在のアプリ内ブラウザはファイルをダウンロードできません。Safari や Chrome などのシステムブラウザでページを開いてから、もう一度ダウンロードしてください。",
"現在のアプリ内ブラウザはファイルをダウンロードできません。下のリンクをコピーし、システムブラウザで開けば自動的にダウンロードされます。",
inAppDownloadIntroNamed:
"{browser} のアプリ内ブラウザはファイルを直接ダウンロードできません。Safari や Chrome などのシステムブラウザでページを開いてから、もう一度ダウンロードしてください。",
inAppDownloadStepCopy: "下の「リンクをコピー」をタップします。",
"{browser} のアプリ内ブラウザはファイルをダウンロードできません。下のリンクをコピーし、システムブラウザで開けば自動的にダウンロードされます。",
inAppDownloadStepCopy:
"下の「リンクをコピー」をタップします(ファイルの直接ダウンロード URL です)。",
inAppDownloadStepOpen:
"右上のメニューから「ブラウザで開く」を選び、必要に応じてリンクを貼り付けます。",
inAppDownloadStepDownload:
"システムブラウザで再度ダウンロードボタンをタップすると、ファイルがダウンロード先に保存されます。",
"システムブラウザSafari、Chrome など)を開き、アドレスバーにリンクを貼り付けます。",
inAppDownloadStepDownload: "ファイルは自動的にダウンロード先に保存されます。",
inAppDownloadCopied: "リンクをコピーしました",
inAppDownloadCopyFail: "コピーに失敗しました。手動でコピーしてください",
};