CorrelAid / correlaid_website

Source code for the CorrelAid website
https://correlaid.org
3 stars 0 forks source link

Cant navigate back to overview from slug pages #533

Closed jstet closed 9 months ago

jstet commented 9 months ago

Repro:

  1. Go to https://www.correlaid.org/daten-nutzen/projektdatenbank/
  2. Click on read more for Mitgliederbefragung des Turnvereins Käfertal
  3. try to navigate back

url changes but page content doesnt

Same for clicking on blogposts

KonradUdoHannes commented 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.

jstet commented 9 months ago

I dont see anything in the console though :'(

jstet commented 9 months ago

I actually noticed this bug also applies to events and blog posts

jstet commented 9 months ago
KonradUdoHannes commented 9 months ago

I'll have a look.

KonradUdoHannes commented 9 months ago

I don't have a solution yet, but it might be a good idea to collect some observations so here they are.

jstet commented 9 months ago

Thank you Konrad! I think it is also worth mentioning that going back to the overview worked in the past.

KonradUdoHannes commented 9 months ago

That is also quite interesting. With that the two most promising approaches for further investigation I see are the following.

  1. Deploy local dev versions of old commits in order to find one where the back button was still working. Then either user 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.
  2. Look more closely into the logic of the change language button and which states it relies on, as these states are apparently the ones that are not properly updated when the issue appears.
KonradUdoHannes commented 9 months ago

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.

jstet commented 9 months ago

Yes thats makes a lot of sense. I will try to fix it this evening.