diff --git a/build/router/controller/ics.php b/build/router/controller/ics.php index 24451e2..2e47eaa 100644 --- a/build/router/controller/ics.php +++ b/build/router/controller/ics.php @@ -37,7 +37,7 @@ =========================================================*/ /* (1) Headers */ header('Content-Type: text/calendar; charset=utf-8'); - header('Content-Disposition: attachment; filename='.$this->diplome_id.'.ics'); + // header('Content-Disposition: attachment; filename='.$this->diplome_id.'.ics'); /* (2) Body */ readfile($file_name); diff --git a/config/routes.json b/config/routes.json index 3229c84..0b45c0d 100644 --- a/config/routes.json +++ b/config/routes.json @@ -11,7 +11,7 @@ "arguments": {} }, - "/ics/{diplome_id}": { + "/ics/{diplome_id}.ics": { "methods": ["GET"], "controller": "ics:download", "arguments": {