@cybis The referenced index.php and rfc8910.php only apply to captive portal so they won't help.
It will be a while before the lease affinity issue is fixed in Kea and they likely have to fix it before pfSense adopts it. Even then, it will only be in the most recent release of pfSense so if you want to run CE, be prepared for a long delay. The longer you keep Kea running without a restart, the closer you are to a solution. Every Kea restart is a do over for IP allocation. You could also ensure your clients keep their leases active as in the static lease suggestion or long lease times that will survive the reboot but again, if they do ever timeout after a reboot, they have no affinity protection any more, even weeks later.