Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/whoami page appears logged out after browser history navigation #1116

Open
victorlin opened this issue Feb 13, 2025 · 4 comments
Open

/whoami page appears logged out after browser history navigation #1116

victorlin opened this issue Feb 13, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@victorlin
Copy link
Member

Current Behavior

Using Vivaldi (Chromium 132):

bug.mov

Expected behavior

It works fine on Safari:

good.mov

How to reproduce

Steps to reproduce the current behavior:

  1. Log into nextstrain.org
  2. Go to any page with a user button (including auspice views)
  3. Click on the user button to navigate to /whoami
  4. Use web browser functionality to go back to the previous page in history
  5. Use web browser functionality to go forward in history
  6. Observe message "You are not logged in."
@victorlin victorlin added the bug Something isn't working label Feb 13, 2025
@sagar-pathak

This comment has been minimized.

@tsibley

This comment has been minimized.

@tsibley
Copy link
Member

tsibley commented Feb 24, 2025

@victorlin Can you record what network requests (if any) are happening on the navigation back?

(I hate that there's a separate network request for logged in status, but there is because of no SSR.)

@genehack
Copy link
Contributor

(I hate that there's a separate network request for logged in status, but there is because of no SSR.)

FWIW, now that the /whoami page is built with the App Router, the component could be converted to a server-side thing, I think.

I'm not doing it as part of the /pathogens port, but I am considering doing something similar with the /list-resources call that's used to build that page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants