Closed jstet closed 9 months ago
This sounds to me like our typical runtime error where a bug in our code causes a svelte framework promise to fail at runtime. Aside from the non-closing navigation menus this behaved the same. We can check it by simply checking the browser console for the failed promise. This will not immediately identify the underlying cause but will narrow the problem a bit.
I dont see anything in the console though :'(
I actually noticed this bug also applies to events and blog posts
I'll have a look.
I don't have a solution yet, but it might be a good idea to collect some observations so here they are.
[events]/[slug]
to [events]
./
and navigating to a slug page by copying the url in the browsers navigation bar. In such a case the back button works as expected./veranstaltungen
it will then jump to en/events/[some event slug]
. This is quite interesting because it suggests that some internal state is not updated as expected when using the back button. Maybe there is an issue related to oure $page_key
store logic as slug pages share the stored value with their parents.load
statements systematically and it appears that their results get cached quite a bit such that the don't rerun when the back button is used, both in cases in which the back button works and in cases in which it doesn't. So the data
object won't trigger reactivity and one could look more into other parts, such as url changes that might trigger it.Thank you Konrad! I think it is also worth mentioning that going back to the overview worked in the past.
That is also quite interesting. With that the two most promising approaches for further investigation I see are the following.
git diff
to determine the change that causes the issue, or try to progress forward as much as possible in the commit history until the issue appears again. The disadvantage of this approach ist that we cannot roll back the CMS, and some current CMS schemas might not match the expectations of the older website implementations. But since we can use any of the slug pages, one might be stable enough.I was able to use method 1 to identify the commit that broke it. The commit is 4f6127531e42fac989fc1fa24f4e68cbd5aca171 It is part of the filter implementation when url mutations without navigation where introduced, so I also think it makes sense that this might cause such a bug. I havn't looked into the commit yet, but I think this should bring us quite a bit closer to fixing the issue.
Yes thats makes a lot of sense. I will try to fix it this evening.
Repro:
url changes but page content doesnt
Same for clicking on blogposts