Browse Source

Fix image URL handling for S3 compatibility

pull/2214/head
iwsh 1 year ago
parent
commit
5605f80ec2
1 changed files with 5 additions and 2 deletions
  1. 7
      frontend/domain/models/example/example.ts

7
frontend/domain/models/example/example.ts

@ -11,8 +11,11 @@ export class ExampleItem {
) {}
get url() {
const l = this.fileUrl.indexOf('media/')
return this.fileUrl.slice(l - 1)
const l = this.fileUrl.indexOf('/media/')
if (l < 0) {
return this.fileUrl
}
return this.fileUrl.slice(l)
}
}

Loading…
Cancel
Save