Skip to content
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

Fetch relative assets from base_path instead of root when base_path is set #2403

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

s1gtrap
Copy link

@s1gtrap s1gtrap commented May 10, 2024

I also ran into #2285, and went ahead and had a look. Turns out #2381 fixed most of it, but I believe it needs a trailing / in order to serve assets correctly. Without a trailing /, assets that are relatively addressed will search in the root path instead of relative to the base_path, causing 404s as assets are (correctly) served from the base_path.

This seems as if it was the intended use of Router::nest as requests to /<base_path> are redirected to /<base_path>/ automatically.

The alternative would be to hardcode the base_path in the assets but I don't think this is a very intuitive approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant