ror-community / ror-roadmap

Central information about what is happening at ROR and how to contribute feedback
10 stars 2 forks source link

[BUG] v2 UI: Link to JSON version should match env #233

Closed lizkrznarich closed 5 months ago

lizkrznarich commented 5 months ago

Version v2

Describe the bug v2 record details view includes a link to the JSON view of the record, however, this link always goes to the production API https://api.ror.org/v2/organizations . Staging and dev records may not exist in production, and a 404 error is returned. Stagin and dev should use corresponding staging/dev API URL:

To Reproduce Steps to reproduce the behavior:

  1. Go to https://dev.ror.org/004j8pp46
  2. Click on See JSON view for full record data
  3. URL uses production API https://api.ror.org/v2/organizations/004j8pp46

Expected behavior URL in step 4 uses dev API https://api.dev.ror.org/v2/organizations/004j8pp46 Screenshots

json-link-stage
lizkrznarich commented 5 months ago

https://github.com/ror-community/ror-app/pull/207

lizkrznarich commented 5 months ago

https://github.com/ror-community/ror-app/pull/215