feat: deep linking for hosted URLs and openconcho:// scheme
Add /explore redirect route that maps Honcho's deep-link shape (?workspace=...&view=...&session=...) onto our existing flat routes, so any app.honcho.dev URL works against a self-hosted instance by swapping the host. Wire tauri-plugin-deep-link to register the openconcho:// scheme on desktop and forward incoming URLs into the router on launch and at runtime.
This commit is contained in:
@@ -1,19 +1,20 @@
|
||||
{
|
||||
"$schema": "../gen/schemas/desktop-schema.json",
|
||||
"identifier": "default",
|
||||
"description": "Default capabilities for the OpenConcho desktop window",
|
||||
"windows": ["main"],
|
||||
"permissions": [
|
||||
"core:default",
|
||||
{
|
||||
"identifier": "http:default",
|
||||
"allow": [
|
||||
{ "url": "http://*" },
|
||||
{ "url": "http://*:*" },
|
||||
{ "url": "https://*" },
|
||||
{ "url": "https://*:*" }
|
||||
]
|
||||
},
|
||||
"shell:allow-open"
|
||||
]
|
||||
"$schema": "../gen/schemas/desktop-schema.json",
|
||||
"identifier": "default",
|
||||
"description": "Default capabilities for the OpenConcho desktop window",
|
||||
"windows": ["main"],
|
||||
"permissions": [
|
||||
"core:default",
|
||||
{
|
||||
"identifier": "http:default",
|
||||
"allow": [
|
||||
{ "url": "http://*" },
|
||||
{ "url": "http://*:*" },
|
||||
{ "url": "https://*" },
|
||||
{ "url": "https://*:*" }
|
||||
]
|
||||
},
|
||||
"shell:allow-open",
|
||||
"deep-link:default"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user