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

background-light.webp wrong path - errors in console #300

Open
Cuingamehtar opened this issue Jan 23, 2024 · 4 comments
Open

background-light.webp wrong path - errors in console #300

Cuingamehtar opened this issue Jan 23, 2024 · 4 comments

Comments

@Cuingamehtar
Copy link

Cuingamehtar commented Jan 23, 2024

I'm getting 404 error messages in the console - server can't find image in the following path: /modules/pf2e-dorako-ux/img/background-light.webp
Note that it seeks the file in the ux module, while it should look in the ui module.

UI v.3.3.10
UX v.1.3.2

@Dorako
Copy link
Owner

Dorako commented Jan 23, 2024

Gonna need a bit more info here - what is looking for this file?
UX doesn't contain any images (except the hero image), and the modules are not looking at each other's files.

@Cuingamehtar
Copy link
Author

It happens when I open a NPC actor sheet. Pops up when I try to open the Main tab or expand AC or HP sections.
Everything is fine for a PC.
Network tab in Chrome shows that this file is used by pf2e-dorako-ux/styles/dorako-ux.css.
Disabling the UI stops this issue.

@Cuingamehtar
Copy link
Author

Cuingamehtar commented Jan 23, 2024

Ok, so the line 11968 of dorako-ui.css contains
url(../img/background-light.webp)
I was seemingly able to fix the issue by changing it to
url(../../pf2e-dorako-ui/img/background-light.webp)

I think the server tries to find the image file relative to the css file that wanted it and going up 1 level is not enough for it to locate the file.

@Dorako
Copy link
Owner

Dorako commented Jan 24, 2024

I see, I can reproduce it now, will have a look.

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

No branches or pull requests

2 participants