Skip to content

Commit 7eeefaa

Browse files
authored
The userInfo.json call in the public page should include the orcid id of the current page (#2525)
1 parent 0037f4d commit 7eeefaa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/app/core/user-info/user-info.service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ export class UserInfoService {
3535
'userInfo.json'
3636

3737
if (outhSiginFlag) {
38-
userInfoUrl = runtimeEnvironment.AUTH_SERVER + 'userInfo.json'
38+
userInfoUrl = runtimeEnvironment.AUTH_SERVER +
39+
(options?.publicRecordId ? options.publicRecordId + '/' : '') +
40+
'userInfo.json'
3941
}
4042

4143
return this._http

0 commit comments

Comments
 (0)