diff --git a/declarationtvaindex.php b/declarationtvaindex.php index 41e8064..088a0a9 100644 --- a/declarationtvaindex.php +++ b/declarationtvaindex.php @@ -155,6 +155,8 @@ if (empty($declarations)) { if ($pdf_path) { // Create a download link $relative_path = str_replace(DOL_DATA_ROOT, '', $pdf_path); + // Remove the extra /documents from the path + $relative_path = str_replace('/documents/documents/', '/documents/', $relative_path); $download_url = DOL_URL_ROOT . $relative_path; print ''; print ' PDF';