v4: issues with multilingual site #626
Replies: 3 comments 2 replies
-
@Magneticdud, do I understand correctly that, technically speaking, it's not an issue of a multilingual site since you deploy two different websites? If that's the case, you should have two different |
Beta Was this translation helpful? Give feedback.
-
I found a solution for the CORS problem. After I edited the css and js partials, i visually fixed my website. I go to eat then submit a PR for this |
Beta Was this translation helpful? Give feedback.
-
regarding the problem of "language change", |
Beta Was this translation helpful? Give feedback.
-
Hello, I have two websites, example.com (english) and example.it (italian)
One year ago, I set it correctly, it was generating ok: two separate directories that I would upload to the two different FTPs
now that i changed to v4 in hugo.toml, I have two issues:
in the example.it italian website, theme.css and theme.js are loaded from example.com, and it gives a CORS error in console. The files are not loaded by the browser and so the page is visually broken. I set cloudflare to add Access-Control-Allow-Origin=* to all URLs and I can pass this test but nothing changes
for the secondary language, the resized version of featuredImage.jpg is not generated, so it gives a 404 and the article is without the image
the bottom "language change" button correctly links to the right URL, but the link at the top of the page, is to self at both languages. This works fine if baseURL is not set. Once i set, only the bottom links are correct
what mistake in the configuration could I've done?
edit:
for the issue of the images I see this when i generate:
so it's not processing that image, for some reason...
Beta Was this translation helpful? Give feedback.
All reactions