Garden-AI / garden

https://garden-ai.readthedocs.io
MIT License
21 stars 4 forks source link

bug: doi.org redirect points to invalid thegardens.ai url #474

Closed OwenPriceSkelly closed 5 months ago

OwenPriceSkelly commented 6 months ago

When a user officially registers a doi with garden-ai garden register-doi 10.1234/my-fake-doi (so that it is no longer a "draft doi"), datacite will redirect https://doi.org/10.1234/my-fake-doi to a url we provide. But the url we give datacite is just a naive https://thegardens.ai/10.1234/my-fake-doi, which is incorrect.

For example, Ryan Jacob's materials properties garden (10.26311/ep98-br79) was registered with datacite, so https://doi.org/10.26311/ep98-br79 redirects to https://thegardens.ai/10.26311/ep98-br79, which is a 404 because the garden actually lives at https://thegardens.ai/#/garden/10.26311%2fep98-br79

Acceptance Criteria: