Skip to content

Commit 731e0d8

Browse files
committed
Merge branch 'hotfix/26.6.1'
2 parents 3df1d46 + 2bc8ac2 commit 731e0d8

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
We follow the CalVer (https://calver.org/) versioning scheme: YY.MINOR.MICRO.
44

5+
26.6.1 (2026-03-26)
6+
===================
7+
8+
* Hotfix to prevent redirect on 403 error
9+
510
26.6.0 (2026-03-26)
611
===================
712

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "osf",
3-
"version": "26.6.0",
3+
"version": "26.6.1",
44
"scripts": {
55
"ng": "ng",
66
"analyze-bundle": "ng build --configuration=analyze-bundle && source-map-explorer dist/**/*.js --no-border-checks",

src/app/shared/services/metadata-records.service.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HttpClient } from '@angular/common/http';
1+
import { HttpClient, HttpHeaders } from '@angular/common/http';
22
import { inject, Injectable } from '@angular/core';
33

44
import { ENVIRONMENT } from '@core/provider/environment.provider';
@@ -18,6 +18,9 @@ export class MetadataRecordsService {
1818

1919
getMetadataRecord(osfid: string, format: MetadataRecordFormat) {
2020
const url = `${this.webUrl}/metadata/${osfid}/?format=${format}`;
21-
return this.http.get(url, { responseType: 'text' });
21+
return this.http.get(url, {
22+
responseType: 'text',
23+
headers: new HttpHeaders({ 'X-No-Auth-Redirect': 'true' }),
24+
});
2225
}
2326
}

0 commit comments

Comments
 (0)