Upstream-merge: KVT-links via open_link::open_url, sleutels-sessiehosts toegestaan
@@ -220,7 +220,7 @@ pub(crate) fn notice(text: String, cx: &mut App) {
220
220
221
221
pub(crate) fn open_external(url: &str, cx: &mut App) {
222
222
let Some(handle) = cx.try_global::<AppHandle>() else {
223
cx.open_url(url);
223
app_base::open_link::open_url(cx, url);
224
224
return;
225
225
};
226
226
let store = handle.0.read(cx).store.clone();
@@ -220,7 +220,7 @@ pub(crate) fn notice(text: String, cx: &mut App) {220
220
221
pub(crate) fn open_external(url: &str, cx: &mut App) {221
pub(crate) fn open_external(url: &str, cx: &mut App) {222
let Some(handle) = cx.try_global::<AppHandle>() else {222
let Some(handle) = cx.try_global::<AppHandle>() else {223
cx.open_url(url);223
app_base::open_link::open_url(cx, url);224
return;224
return;225
};225
};226
let store = handle.0.read(cx).store.clone();226
let store = handle.0.read(cx).store.clone();@@ -1153,7 +1153,7 @@ pub fn open_ticket_link(url: &str, cx: &mut App) -> bool {
1153
1153
if is_demo(cx) {
1154
1154
match demo_detail(id) {
1155
1155
Some(detail) => cx.defer(move |cx| show_window(detail, cx)),
1156
None => cx.open_url(&url),
1156
None => app_base::open_link::open_url(cx, &url),
1157
1157
}
1158
1158
return true;
1159
1159
}
@@ -1170,7 +1170,7 @@ pub fn open_ticket_link(url: &str, cx: &mut App) -> bool {
1170
1170
forget_token(cx);
1171
1171
}
1172
1172
// Geen toegang of Asclepius niet bereikbaar: een gewone link.
1173
cx.open_url(&url);
1173
app_base::open_link::open_url(cx, &url);
1174
1174
}
1175
1175
});
1176
1176
})
@@ -1153,7 +1153,7 @@ pub fn open_ticket_link(url: &str, cx: &mut App) -> bool {1153
if is_demo(cx) {1153
if is_demo(cx) {1154
match demo_detail(id) {1154
match demo_detail(id) {1155
Some(detail) => cx.defer(move |cx| show_window(detail, cx)),1155
Some(detail) => cx.defer(move |cx| show_window(detail, cx)),1156
None => cx.open_url(&url),1156
None => app_base::open_link::open_url(cx, &url),1157
}1157
}1158
return true;1158
return true;1159
}1159
}@@ -1170,7 +1170,7 @@ pub fn open_ticket_link(url: &str, cx: &mut App) -> bool {1170
forget_token(cx);1170
forget_token(cx);1171
}1171
}1172
// Geen toegang of Asclepius niet bereikbaar: een gewone link.1172
// Geen toegang of Asclepius niet bereikbaar: een gewone link.1173
cx.open_url(&url);1173
app_base::open_link::open_url(cx, &url);1174
}1174
}1175
});1175
});1176
})1176
})@@ -32,6 +32,7 @@ const ALLOWED_PATHS: &[(&str, &str)] = &[
32
32
("webview/", "WebView2 page hosts"),
33
33
("app-base/src/task_dialog/sdk.rs", "task dialog host origin"),
34
34
("core/src/links.rs", "link classification"),
35
("kvt-sleutels/src/session.rs", "KVT: sign-in hosts of the sleutels.kvt.nl session tab"),
35
36
("core/src/meeting_join.rs", "meeting join link parsing"),
36
37
("core/src/message_link.rs", "message link parsing"),
37
38
("core/src/call_event.rs", "recording link host check"),
@@ -32,6 +32,7 @@ const ALLOWED_PATHS: &[(&str, &str)] = &[32
("webview/", "WebView2 page hosts"),32
("webview/", "WebView2 page hosts"),33
("app-base/src/task_dialog/sdk.rs", "task dialog host origin"),33
("app-base/src/task_dialog/sdk.rs", "task dialog host origin"),34
("core/src/links.rs", "link classification"),34
("core/src/links.rs", "link classification"),35
("kvt-sleutels/src/session.rs", "KVT: sign-in hosts of the sleutels.kvt.nl session tab"),35
("core/src/meeting_join.rs", "meeting join link parsing"),36
("core/src/meeting_join.rs", "meeting join link parsing"),36
("core/src/message_link.rs", "message link parsing"),37
("core/src/message_link.rs", "message link parsing"),37
("core/src/call_event.rs", "recording link host check"),38
("core/src/call_event.rs", "recording link host check"),