fix(desktop): update deeplink route for extension store (#100)

* fix(desktop): update deeplink route for extension store

* chore(desktop): bump package version to 0.1.21
This commit is contained in:
Huakun Shen 2025-02-11 08:29:36 -05:00 committed by GitHub
parent 5573923a76
commit 183af3fb84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@kksh/desktop", "name": "@kksh/desktop",
"version": "0.1.20", "version": "0.1.21",
"description": "", "description": "",
"type": "module", "type": "module",
"scripts": { "scripts": {

View File

@ -58,7 +58,7 @@ export async function handleKunkunProtocol(parsedUrl: URL) {
const parsed = v.parse(StorePathSearchParams, params) const parsed = v.parse(StorePathSearchParams, params)
openMainWindow() openMainWindow()
if (parsed.identifier) { if (parsed.identifier) {
goto(`/extension/store/${parsed.identifier}`) goto(i18n.resolveRoute(`/app/extension/store/${parsed.identifier}`))
} else { } else {
goto(i18n.resolveRoute("/app/extension/store")) goto(i18n.resolveRoute("/app/extension/store"))
} }
@ -66,7 +66,7 @@ export async function handleKunkunProtocol(parsedUrl: URL) {
emitRefreshDevExt() emitRefreshDevExt()
} else if (href.startsWith(DEEP_LINK_PATH_AUTH_CONFIRM)) { } else if (href.startsWith(DEEP_LINK_PATH_AUTH_CONFIRM)) {
openMainWindow() openMainWindow()
goto(`/auth/confirm?${parsedUrl.searchParams.toString()}`) goto(i18n.resolveRoute(`/app/auth/confirm?${parsedUrl.searchParams.toString()}`))
} else { } else {
console.error("Invalid path:", pathname) console.error("Invalid path:", pathname)
toast.error("Invalid path", { toast.error("Invalid path", {