Skip to content

Commit

Permalink
fix(logs): use absolute path in logURL()
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCyjaneK authored and jkuri committed Jun 17, 2021
1 parent 1049f92 commit b57cbe4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/abstruse/src/app/builds/job/job.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ export class JobComponent implements OnInit, OnDestroy {
error: string | null = null;

get logURL(): string {
const port = location.port === '4440' || '80' ? '' : `:${location.port}`;
return [
`${location.protocol}//${location.hostname}${port}/api/v1/builds/job/${this.jobID}/log`,
`/api/v1/builds/job/${this.jobID}/log`,
this.authService.token || ''
].join('?token=');
}
Expand Down

0 comments on commit b57cbe4

Please sign in to comment.