Fixed asset path resolver to use the second segment instead of first. (#3472)
Co-authored-by: Sam <@>
This commit is contained in:
1 parent
04282ef889
commit
04841063aa
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user