DioxusLabs / DioxusLabs/dioxus

Support relative asset loading for router-less apps

Open
#5,511 10 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

## Feature Request

Currently, if I build a dioxus web app bundle, it will load assets using absolute paths. So, one has to consider the path the app will be hosted under at build time.

Dioxus could use relative paths to load those assets instead.

This wouldn't really work for multi-page apps that use a router, since relative path will depend on the navigated location, but for single-page apps this should work, and would simplify deployment greatly.

## Implement Suggestion

I don't know

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.