OBF / homepage

Code for the OBF's new homepage
http://open-bio.org
5 stars 10 forks source link

BOSC 2022 redirect not working consistently #81

Closed nlharris closed 10 months ago

nlharris commented 1 year ago

https://www.open-bio.org/events/bosc/ redirects to https://www.open-bio.org/?obf-events=bosc-2022 which is a nearly empty page. What happened to the BOSC page?? This needs to be fixed ASAP!

nlharris commented 1 year ago

This is really weird: it seems to behave differently in my two Chrome profiles (work vs personal). In my home profile, https://www.open-bio.org/events/bosc (with or without a final /) redirects correctly to https://www.open-bio.org/events/bosc-2022/. In my work profile, it redirects to https://www.open-bio.org/?obf-events=bosc-2022. (Even if I try to go https://www.open-bio.org/events/bosc-2022/, in my work profile it gets redirected to https://www.open-bio.org/events/bosc-2022/.. Why would redirects be profile-dependent?? Can others try this and see what happens? @idoerg

idoerg commented 1 year ago

https://www.open-bio.org/events/bosc-2022/ brings up the full page for me.

I'm not sure about the redirect, looking into it.

idoerg commented 1 year ago

The redirect to did happen from the drop-down menu, and from the events page. https://www.open-bio.org/?obf-events=bosc-2022 The problem is reproducible.

But opening in an anonymous browser, or clearing the cookies from open-bio on a non-anonymous browser seemed to do the trick for me.

So the good news, is that there is a solution, the bad news is I'm not sure why this is happening, and that the solution seems to be client-side.

Will dig in further.

hlapp commented 1 year ago

Page redirection in Wordpress unfortunately seems be a mess. There's also "partial match" redirection, which is probably at least contributing here.

From what I can see, the BOSC About page sits under /events/bosc-2021/: https://www.open-bio.org/events/bosc-2021/about/ (and it's link to BOSC 2022 under the timeline goes to BOSC 2021) There's no corresponding 2022 page (nor arguably should there be one; it should instead be independent of the year).

The link https://www.open-bio.org/events/bosc-2022/ now does resolve correctly to the full page for me. (I think it didn't yesterday?)

hlapp commented 1 year ago

https://www.open-bio.org/events/bosc/ redirects to https://www.open-bio.org/?obf-events=bosc-2022 which is a nearly empty page

This does redirect to the full BOSC 2022 page now for me, and my recollection is that this is the behavior desired, i.e., that it redirect to the page of the current BOSC event. So once the 2023 page exists, it would redirect there.

nlharris commented 1 year ago

Now the redirect from /bosc to /bosc-2022 is working from me in both Chrome profiles! Did someone change something? This is really weird.

There are some other issues mentioned here as well (which are not actually tied to this redirect):