diff --git a/app/Entities/BaseEntity.php b/app/Entities/BaseEntity.php index 9dc58ce..6243d40 100644 --- a/app/Entities/BaseEntity.php +++ b/app/Entities/BaseEntity.php @@ -24,7 +24,7 @@ abstract class BaseEntity extends Entity } $files = explode(DEFAULTS['DELIMITER_FILE'], $this->attributes[$field]); return anchor( - current_url() . "download/{$field}/{$this->getPrimaryKey()}", + current_url() . "/download/{$field}/{$this->getPrimaryKey()}", ICONS['IMAGE_FILE'] . $files[0], ["target" => "_self"] );