From ada4a5824a0b67775baeb9532aa2801eb1ccb1ae Mon Sep 17 00:00:00 2001 From: milanmajchrak Date: Fri, 22 Nov 2024 15:12:45 +0100 Subject: [PATCH] Use path `./assets` instead of `/assets` --- .../file-description/file-description.component.ts | 2 +- .../clarin-item-box-view/clarin-item-box-view.component.ts | 2 +- src/themes/dspace/app/header/header.component.html | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/item-page/simple/field-components/preview-section/file-description/file-description.component.ts b/src/app/item-page/simple/field-components/preview-section/file-description/file-description.component.ts index ebeec24cd31..6a2b69acdce 100644 --- a/src/app/item-page/simple/field-components/preview-section/file-description/file-description.component.ts +++ b/src/app/item-page/simple/field-components/preview-section/file-description/file-description.component.ts @@ -10,7 +10,7 @@ const allowedPreviewFormats = ['text/plain', 'text/html', 'application/zip', 'ap styleUrls: ['./file-description.component.scss'], }) export class FileDescriptionComponent { - MIME_TYPE_IMAGES_PATH = '/assets/images/mime/'; + MIME_TYPE_IMAGES_PATH = './assets/images/mime/'; MIME_TYPE_DEFAULT_IMAGE_NAME = 'application-octet-stream.png'; @Input() diff --git a/src/app/shared/clarin-item-box-view/clarin-item-box-view.component.ts b/src/app/shared/clarin-item-box-view/clarin-item-box-view.component.ts index 8dc1defc1f1..687ee86dfdd 100644 --- a/src/app/shared/clarin-item-box-view/clarin-item-box-view.component.ts +++ b/src/app/shared/clarin-item-box-view/clarin-item-box-view.component.ts @@ -44,7 +44,7 @@ export class ClarinItemBoxViewComponent implements OnInit { protected readonly AUTHOR_METADATA_FIELDS = AUTHOR_METADATA_FIELDS; - ITEM_TYPE_IMAGES_PATH = '/assets/images/item-types/'; + ITEM_TYPE_IMAGES_PATH = './assets/images/item-types/'; ITEM_TYPE_DEFAULT_IMAGE_NAME = 'application-x-zerosize.png'; /** diff --git a/src/themes/dspace/app/header/header.component.html b/src/themes/dspace/app/header/header.component.html index e7d72813b75..db6ab5ce03e 100644 --- a/src/themes/dspace/app/header/header.component.html +++ b/src/themes/dspace/app/header/header.component.html @@ -5,7 +5,7 @@