I am having problems converting a working pure-html-solution to Kirby.
I am trying to load an ICS-file for a plugin (fullcalender.io). This works in pure HTML. Here is my WOKRING Code:
(at the time of this writing it runs for demo purposes on this server: https://www.kip-ol.de/_kalender/_fullcalendar/examples/icalendar_KGS.html)
As you can see: Works.
The calender itself works on my production-server as well: Kalender der KGS | KGS Rastede.
Here is my working code: site/templates/kalender.php · ics · Carsten Niehaus / Homepage · GitLab
Now to my problem:
I need to switch from using JSON as an input to using ICS as an input. For that I needed to change the code a bit using a fullcalender.io-plugin (events from an iCalendar feed - Docs | FullCalendar). As you can see above it works perfectly fine OUTSIDE of Kirby.
When I try to run the very same code as a php-template in Kirby it doesn’t load the file (‘public.ics konnte nicht geladen werden’) as if Kirby prevents the plugin to load my .ics-file. Some kind of “firewalling”.
As my code works as a regular html-file it has to be something Kirby-specific.
Any help is very much appreciated!