Skip to content

Commit

Permalink
Cyber TODO - Fix broken link
Browse files Browse the repository at this point in the history
  • Loading branch information
csavelief committed Sep 8, 2024
1 parent 45b3038 commit 5851e1c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class TabDelegation extends com.computablefacts.widgets.Widget {
const container = this.container.querySelector('#hash-container');
const line = this._createLineWithSelect(delegate.tag, delegate.hash);

const hashURL = `${window.location.protocol}//${window.location.hostname}/am/web/cyber-todo/${delegate.hash}`;
const hashURL = `${window.location.protocol}//${window.location.hostname}:${window.location.port}/am/web/cyber-todo/${delegate.hash}`;
line.querySelector('.hash-url').innerHTML = `${hashURL} <i class="ms-1 fal fa-external-link"></i>`;
line.querySelector('.hash-url').href = hashURL;

Expand Down Expand Up @@ -77,7 +77,7 @@ export class TabDelegation extends com.computablefacts.widgets.Widget {
const loaderEl = line.querySelector('.loader');
const loader = new com.computablefacts.blueprintjs.MinimalSpinner(loaderEl, 'small');
this.datastore_.postHash(item).then(hash => {
const hashURL = `${window.location.protocol}//${window.location.hostname}/am/web/cyber-todo/${hash.hash}`;
const hashURL = `${window.location.protocol}//${window.location.hostname}:${window.location.port}/am/web/cyber-todo/${hash.hash}`;
line.querySelector('.hash-url').innerHTML = `${hashURL} <i class="fal fa-external-link"></i>`;
line.querySelector('.hash-url').href = hashURL;
line.id = hash.id;
Expand Down

0 comments on commit 5851e1c

Please sign in to comment.