getCurrent
getCurrent():
Promise
<null
|string
[]>
Defined in: index.ts:23
Get the current URLs that triggered the deep link. Use this on app load to check whether your app was started via a deep link.
Promise
<null
| string
[]>
import { getCurrent } from '@tauri-apps/plugin-deep-link';const urls = await getCurrent();
- Windows / Linux: This function reads the command line arguments and checks if there’s only one value, which must be an URL with scheme matching one of the configured values.
Section titled “- Windows / Linux: This function reads the command line arguments and checks if there’s only one value, which must be an URL with scheme matching one of the configured values.”Note that you must manually check the arguments when registering deep link schemes dynamically with [Self::register
].
Additionally, the deep link might have been provided as a CLI argument so you should check if its format matches what you expect..
2.0.0
© 2025 Tauri Contributors. CC-BY / MIT