You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
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,
![image](https://private-user-images.githubusercontent.com/28787373/261808731-dae352d7-c1d9-416d-bbc1-535d0c5138d7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4MDUxODcsIm5iZiI6MTcyNDgwNDg4NywicGF0aCI6Ii8yODc4NzM3My8yNjE4MDg3MzEtZGFlMzUyZDctYzFkOS00MTZkLWJiYzEtNTM1ZDBjNTEzOGQ3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI4VDAwMjgwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ0ZDllM2YzYjljZWVhN2U5MjY5NzQzYWVlMjk3OGI1Mzk3MDBjZjBlNTdhMGE5NjRmOGJlYThjYTNmZmIwNDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.6p-Kx2WQdnB2fZAQ1LMrGiYGimrFSn8aT54oOFz3s2g)
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: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!
![image](https://private-user-images.githubusercontent.com/28787373/261809026-1d5f4421-cde3-439f-994e-b13e340967be.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4MDUxODcsIm5iZiI6MTcyNDgwNDg4NywicGF0aCI6Ii8yODc4NzM3My8yNjE4MDkwMjYtMWQ1ZjQ0MjEtY2RlMy00MzlmLTk5NGUtYjEzZTM0MDk2N2JlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI4VDAwMjgwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFiZGNiZWM0ZjQ0YjMwNWQ1MzI2NWIwZTcyODc1ZmI0ZjBlNmQ5ZTBjYTkwZjI3OGU1MmY1MGI3MDI3ZjAxMGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.WlkxbMBAEHzw8dry3w7D2gbHB0ExNMQr1-A5VtkwHls)
(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)
The text was updated successfully, but these errors were encountered: