From b90bb03d80ce00d84dfd85e32196a9bc513f80e8 Mon Sep 17 00:00:00 2001 From: ppc Date: Wed, 21 Aug 2024 21:40:05 +0100 Subject: [PATCH] fix server add modal deep link --- amnet-native/app/ServerAddModal.tsx | 4 ++-- .../public/.well-known/apple-app-site-association | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/amnet-native/app/ServerAddModal.tsx b/amnet-native/app/ServerAddModal.tsx index 2d50615..b39399f 100644 --- a/amnet-native/app/ServerAddModal.tsx +++ b/amnet-native/app/ServerAddModal.tsx @@ -89,11 +89,11 @@ export default function ServerAddModal({route, navigation}) { } function handleDeepLink(realm, navigation, route, setAddress: (address: string) => void) { - if (!route.params?.serverAddress) { + if (!route.params?.address) { return; } - const serverUrl = decodeURIComponent(route.params.serverAddress); + const serverUrl = decodeURIComponent(route.params.address); const item = realm.objects(AMServer).filtered("serverAddress = $0", serverUrl); if (item.length) { diff --git a/amnet-web/public/.well-known/apple-app-site-association b/amnet-web/public/.well-known/apple-app-site-association index d7f4bdf..890add0 100644 --- a/amnet-web/public/.well-known/apple-app-site-association +++ b/amnet-web/public/.well-known/apple-app-site-association @@ -7,16 +7,16 @@ ], "components": [ { - "#": "/servers", - "exclude": false + "#": "/cards*" }, { - "#": "/servers/add", - "exclude": false + "#": "/servers" }, { - "#": "/cards/*", - "exclude": false + "#": "/servers/" + }, + { + "#": "/servers/add*" }, { "#": "/servers/*",