zooniverse / front-end-monorepo

A rebuild of the front-end for zooniverse.org
https://www.zooniverse.org
Apache License 2.0
104 stars 29 forks source link

Admin Mode: admin page link is not correct #3739

Closed lcjohnso closed 2 years ago

lcjohnso commented 2 years ago

Package

app-project

Describe the bug

The admin link target URL is incorrect.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://www.zooniverse.org/projects/nora-dot-eisner/planet-hunters-tess
  2. Turn-on Admin Mode
  3. Click "Admin Page" in nav header
  4. Arrive at https://www.zooniverse.org/projects/admin/project_status/nora-dot-eisner/planet-hunters-tess and "page not found"

Expected behavior

Click "Admin Page" in nav header and arrive at https://www.zooniverse.org/admin/project_status/nora-dot-eisner/planet-hunters-tess

cc: @eatyourgreens

eatyourgreens commented 2 years ago

The NextJS app is hosted at https://www.zooniverse.org/projects/, so that URL will be automatically used as the root for all of the project navigation links. I forgot that when I added the admin link. The simplest fix is probably to change that link to use the fully qualified URL of the project admin page.

eatyourgreens commented 2 years ago

May as well add this to #3736 since I've been rewriting the project header in order to test it with React Testing Library.