Skip to content

Commit ff809f1

Browse files
authoredMar 11, 2025
Merge pull request #13 from openearth/json-fix
format url response
2 parents 4067d88 + 762b93e commit ff809f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/api/record-register.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ export const handler = withServerDefaults(async (event, _) => {
9999
}
100100

101101
return {
102-
body: baseUrl + geonetworkUrl + '/dut/catalog.search#/metadata/' + recordId,
102+
body: JSON.stringify({ url: baseUrl + geonetworkUrl + '/dut/catalog.search#/metadata/' + recordId }),
103+
headers: {
104+
'Content-Type': 'application/json',
105+
},
103106
}
104107
})

0 commit comments

Comments
 (0)
Please sign in to comment.