Skip to main content

share_url

Function share_url 

Source
pub fn share_url(origin: &str, link: &ShareLink) -> String
Expand description

The URL a recipient opens: {origin}/s/{opaque_id}#{fragment}.

origin is the server’s public origin (https://capsule.example.com); a trailing / is dropped so the path is not doubled. The fragment is what makes the link work and is never sent to the server by a browser, which is why it rides after the #.