diff --git a/declarationtvaindex.php b/declarationtvaindex.php index cfb6ca4..5b8aedf 100644 --- a/declarationtvaindex.php +++ b/declarationtvaindex.php @@ -155,8 +155,8 @@ if (empty($declarations)) { if ($pdf_path) { // Create a download link $relative_path = str_replace(DOL_DATA_ROOT, '', $pdf_path); - // The file is saved with /documents/documents/ so we need to keep that in the URL - $download_url = DOL_URL_ROOT . $relative_path; + // Add /documents to the URL path + $download_url = DOL_URL_ROOT . '/documents' . $relative_path; print ''; print ' PDF'; print '';