Skip to main content

BuildInitialUrl

Function BuildInitialUrl 

Source
fn BuildInitialUrl(LocalhostUrl: &str) -> String
Expand description

Build the initial webview URL, optionally appending ?folder=<path> when ~/.land/workspaces/RecentlyOpened.json has an entry for the previous session’s workspace. Falls back to plain index.html if the file is missing, malformed, or has no resolvable path.

The returned string is already URL-encoded and safe to feed to WebviewUrl::External.