Website German Version Broken
COM8 opened this issue · 1 comments
COM8 commented
When changing the language to German on the website, no dishes will be displayed.
This is caused by the website requesting the wrong .json file.
https://tum-dev.github.io/mensa-garching/2022/02.json?language=DE
It's missing the eat-api
in the URL.
https://tum-dev.github.io/eat-api/mensa-garching/2022/02.json?language=DE
@Philipp000 could you have a look at this?
Philipp000 commented
Apparently, the URL was absolute and not relative for the german version.
Actually, I don't fully understand why this works locally for me, but not on the production version, as I have a very similar setup, with the page beeing served from a subdirectory.
Either way, it should be now correct, as the english URL also had to many "/".
Further, I also removed the language parameter, as this shouldn't be there.