i just tried exporting my slides and found that when running on a non-default port, the link is created wrongly. this fixes it (although not in my situation, i was using php -S which is single threaded and simply blocks the download because the server is already busy at that point... if i would have found an easy check to know if we run inside the built-in webserver i would have added a check and a warning message, but did not find quickly.). the right solution is to run index.php on the cli.
i just tried exporting my slides and found that when running on a non-default port, the link is created wrongly. this fixes it (although not in my situation, i was using php -S which is single threaded and simply blocks the download because the server is already busy at that point... if i would have found an easy check to know if we run inside the built-in webserver i would have added a check and a warning message, but did not find quickly.). the right solution is to run index.php on the cli.