diff --git a/app/Entities/BaseEntity.php b/app/Entities/BaseEntity.php index 7dfbf5b..9dc58ce 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( - base_url() . "/download/{$field}/{$this->getPrimaryKey()}", + current_url() . "download/{$field}/{$this->getPrimaryKey()}", ICONS['IMAGE_FILE'] . $files[0], ["target" => "_self"] );