Fixed asset path resolver to use the second segment instead of first. (#3472)

Co-authored-by: Sam <@>
This commit is contained in:
Sam JudeandSam authored and GitHub committed 2025-01-02 13:53:13 -05:00
1 parent 04282ef889
commit 04841063aa
1 file changed
+1 -1
+1 -1
View File
@@ -57,7 +57,7 @@ pub(super) fn desktop_handler(
}
// todo: we want to move the custom assets onto a different protocol or something
if let Some(name) = request.uri().path().split('/').next() {
if let Some(name) = request.uri().path().split('/').nth(1) {
if asset_handlers.has_handler(name) {
let _name = name.to_string();
return asset_handlers.handle_request(&_name, request, responder);