#851·webview

Custom URI scheme support

Author: fairkingCreated Nov 19, 2022Updated Aug 18, 2026
Labelstype: feature request

Hi guys? Does webview support custom URIs? As far as I can see it is not: webview. Do you have any plans to add it? The problem is we cannot serve local spa applications without it. localhost is not an option for me.

Ref:

Eg.:

fn void register_uri_scheme(string scheme_name, fn callback) {
}
webview.register_uri_scheme("my_scheme", uri_handler);

fn bytes_stream uri_handler(string uri) {
    return strict_assets_folder.get_file_bytes(uri)
}
xml
<!DOCTYPE html>
<html>
  <head>
    <title>My App</title>

    <base href="my_scheme://">

    <link rel="icon" type="image/ico" href="/favicon.ico">

    <script src="/js/index.b1465023.js"></script>

    <link rel="stylesheet" href="/css/index.e607f6df.css">
  </head>
  <body>
    <div id="my-app"><img src="/images/logo.png" /></div>
  </body>
</html>