-
-
Notifications
You must be signed in to change notification settings - Fork 995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERR_UNKNOWN_URL_SCHEME - Windows #520
Comments
Copying over what I wrote on Discord. I believe that this may be by design at the moment. @FabianLars wrote in tauri-apps/tauri#5333 (comment) that Windows uses This issue MicrosoftEdge/WebView2Feedback#1825 has been tracking the use of custom protocol schemes in WebView2. The new I imagine that the folks over at Tauri will need to investigate the use of I could be wrong - I don't have much experience with Tauri - but from what I read, this explanation makes sense. |
If |
Yep, all you said was correct so far. About the os check: |
We will look at moving to the We are doing something similar to the navigator hack you showed within the Thanks for jumping in @FabianLars and thanks @james-elicx for reporting this. |
Looking at one of the Tauri examples, the handler inside Note that let url = req
.uri()
.strip_prefix("spacedrive://localhost/")
.unwrap_or("");
let decoded_url = percent_encoding::percent_decode(url.as_bytes())
.decode_utf8_lossy()
.to_string();
let path = decoded_url.split('/').collect::<Vec<_>>(); And changing the getThumbnailUrlById: (casId) => convertFileSrc(`thumbnail/${casId}`, 'spacedrive'), Having tried this, I can confirm that it fixes the problem on Windows, but I cannot test if it functions as expected on macOS or Linux. |
Describe the bug
The URL scheme does not seem to be working on Windows. The dev tools console spits out the following, indicating an issue with the URL scheme on Windows.
GET spacedrive://thumbnail/6bb08002b967e052 net::ERR_UNKNOWN_URL_SCHEME
The thumbnails are being generated fine.
One thing that is maybe worth noting is that if you use the URL
https://spacedrive.anything/thumbnail/6bb08002b967e052
, the function forregister_uri_scheme_protocol
runs withspacedrive://anything/thumbnail/6bb08002b967e052
as the value for the parsed URI. It does not run at all when trying to usespacedrive://
though.Reproduction
Run the dev or production build on Windows.
Expected behavior
No response
Platform and versions
Stack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: