Commit 26ef1063 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Changed doi api url to avoid redirect.

parent 88a2553c
...@@ -44,7 +44,7 @@ export default function ResolveDOI() { ...@@ -44,7 +44,7 @@ export default function ResolveDOI() {
}) })
let { doi } = doiMatch.params let { doi } = doiMatch.params
api.get('/datasets', {doi: doi}) api.get('/datasets/', {doi: doi})
.then(response => { .then(response => {
if (response.pagination.total >= 1) { if (response.pagination.total >= 1) {
const dataset_id = response.data[0].dataset_id const dataset_id = response.data[0].dataset_id
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment