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

v9 - Issue with file picker and referencing files from wwwroot returns 404 #11228

Closed
YodasMyDad opened this issue Sep 30, 2021 · 1 comment
Closed

Comments

@YodasMyDad
Copy link

Which exact Umbraco version are you using? For example: 8.13.1 - don't just write v8

9.00

Bug summary

Using the file picker, if you pick a file within 'wwwroot' for example a stylesheet. It will try and reference the stylesheet including the wwwroot folder.

i.e. https://localhost:44361/wwwroot/css/styles.css

However, this results in a 404 not found. Because all files in wwwroot have to be served from the root. https://localhost:44361/css/styles.css

Specifics

No response

Steps to reproduce

If you create a Block List editor and create a block within it, then in the editor appearance section, select your stylesheet from the wwwroot (i.e. /wwwroot/css/styles.css) this whole path gets saved. And when you try to load the block view from the content section it fails because the .css file needs to be served from the root and not 'wwwroot'

Wrong
https://localhost:44361/wwwroot/css/styles.css

Correct
https://localhost:44361/css/styles.css

Expected result / actual result

No response

@YodasMyDad YodasMyDad changed the title Issue with file picker and referencing files from wwwroot returns 404 v9 - Issue with file picker and referencing files from wwwroot returns 404 Sep 30, 2021
@elit0451
Copy link
Member

elit0451 commented Oct 7, 2021

Fixed in: #11298

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

No branches or pull requests

3 participants