If I compile my application using cargo run, the application starts. The configured css file is accepted. The absolute paths to the images on my system are shown in the inspector. The files are found but not displayed. In the inspector I can see under Notwork that this message appears in the Security tab:
The resource was requested insecurely.
If I start the binary from the target/debug directory, the paths are different and the images are not found. When I open the inspector, I see this information in the Console tab:
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (main-80abd743cc2a0d09.css, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (working_desk-c265ae2c0bbb84b7.webp, line 0)
In the Network Tab the links look like this:
Summary
URL: dioxus://index.html/assets/working_desk-c265ae2c0bbb84b7.webp
Status: —
Source: —
How can I ensure that the required resources are found and displayed?