Skip to content

Commit

Permalink
Merge pull request #1447 from Ontotext-AD/GDB-10406-Missing-QuoteMark…
Browse files Browse the repository at this point in the history
…s-In-Rel

GDB-10406 Added missing quotes in rel attribute
  • Loading branch information
sava-savov-ontotext authored Jun 26, 2024
2 parents 704d62b + e68563d commit 18161ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ function yasguiComponentDirective(
modalInstance.result.then(function (data) {
const relValue = data.currentMode.name === 'framed' ? 'frame' : 'context';
const acceptHeader = accept + ';profile=' + data.currentMode.link;
const linkHeader = data.link ? `<${data.link}>; rel=http://www.w3.org/ns/json-ld#${relValue}` : '';
const linkHeader = data.link ? `<${data.link}>; rel="http://www.w3.org/ns/json-ld#${relValue}"` : '';
downloadAs(query, infer, sameAs, authToken, acceptHeader, linkHeader);
});
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/js/angular/export/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ exportCtrl.controller('ExportCtrl',

modalInstance.result.then(function (data) {
const relValue = data.currentMode.name === 'framed' ? 'frame' : 'context';
const linkHeader = data.link ? `<${data.link}>; rel=http://www.w3.org/ns/json-ld#${relValue}` : '';
const linkHeader = data.link ? `<${data.link}>; rel="http://www.w3.org/ns/json-ld#${relValue}"` : '';
downloadJSONLDExport(format, context, linkHeader, $repositories.getActiveRepositoryObject(), $scope.graphsByValue, data.currentMode);
});
};
Expand Down

0 comments on commit 18161ed

Please sign in to comment.