Skip to content

Commit

Permalink
Hardcode location for datahub items
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Jan 16, 2023
1 parent 1535499 commit 1d2c8e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion searchlib/lib/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ export class ResultModel extends BasicModel {
}

get href() {
return this._result.about?.raw;
const href = this._result.about?.raw || '';
return href.includes('/') ? href : `/en/datahub/datahubitem-view/${href}`;
}

get source() {
Expand Down

0 comments on commit 1d2c8e1

Please sign in to comment.