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

Does changing language make the public folder innacessible? #172

Open
alan-barzilay opened this issue Aug 19, 2023 · 0 comments
Open

Does changing language make the public folder innacessible? #172

alan-barzilay opened this issue Aug 19, 2023 · 0 comments

Comments

@alan-barzilay
Copy link

I'm kinda confused about the problem so apologies if I can't explain it properly in my first try.

I use some images as backgrounds or svgs as buttons, they are in the public folder so using them is simple, src"image_name.jpg" works as intended. However, this changes when I switch out from the main language (english) to any other one (french for example). Apparently it tries to find the image in the specific language folder instead of looking at the root of the public directory:
image

Is there a way to not "localize" the images? The domain will change so I would rather not use an absolute path, but I can't seem to find a way to make it work with a relative path.

Am I missing something obvious? I would rather not copy the same images into multiple folders, seems a bit error prone.

Thanks for the help!
(ps: i don't think this is a bug so I didnt report as such, do you need some additional information from my side?)
(pss: the examples sites (https://github.com/yassinedoghri/examples/ and https://github.com/yassinedoghri/website/ ) return 404)
image

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

1 participant