Skip to main content

Module deep_link

Module deep_link 

Source
Expand description

Deep links: the places a link opens in Vector, in the one grammar every client parses.

A place is a path: profile/<npub>, emojis/pack/<naddr>, dm/<npub>, settings[/<category>[/<section>[/<group>]]], nexus[/<app>] or requests. It rides vector://<path>, Vector Web’s own address https://web.vectorapp.io/#<path>, and a Vector link’s fragment (https://vectorapp.io/go#<path>). The website’s own paths carry only the places it has a page for (profiles, emoji packs, DMs), so the rest of its namespace stays the website’s. Vector links (golink.rs) and community invites keep their own shapes. A link only opens a place: joining, launching or changing anything there still takes the user’s tap.

Structs§

DeepLinkAction
What a link opens, as the frontend’s executeDeepLinkAction takes it.

Constants§

WEB_BASE
Vector Web’s own address: a place rides its fragment, which never reaches the server.

Functions§

parse_deep_link
The action a URL opens, or None when it isn’t a Vector deep link.