ninetailed-inc / ninetailed-examples

marketing-contentful-next-demo.vercel.app
9 stars 10 forks source link

[bug][all-in-demo] navigation does not work after some time #79

Open DanweDE opened 3 months ago

DanweDE commented 3 months ago

On the https://examples-marekting-contentful-next-app-all-in.vercel.app/ all-in demo, I experience some odd navigation experience. Sometimes, navigating from one page to another by following links doesn't work anymore.

Reproduce

  1. Ensure JavaScript is enabled (not reproducible without JS enabled)
  2. Enter https://examples-marekting-contentful-next-app-all-in.vercel.app/
  3. Click on top nav "Performance"
  4. Click on top nav "Compensation"
  5. Click on top nav "Employee Management"
  6. Click on top nav "Performance" again

Result: No navigation back to "Performance" happens. Expected: Navigation back to "Performance" should happen.

This same issue is reproducible on various journeys through the page. The link targets seem correct, but maybe there is some JavaScript messing with the link clicks? Tested on Chromium Version 125

cwkosman commented 3 months ago

This seemed to be caused by middleware filters that were too permissive, leading to rapid requests against the same Ninetailed profile that needed to be resolved sequentially. The middleware in the example is now less permissive, so navigation should no longer hang. Please confirm.

DanweDE commented 3 months ago

I just tried, and confirm the initial case to reproduce seems to be working, but now this case is hanging:

landing page -> Pricing -> Performance -> Compensation -> Employee Management -> Pricing

Pricing won't load.