Thanks for reporting this @jtraulle, it should be fixed by this commit which will hit tests-passed in the next hour.
For the working case, your proxy is adding the trailing slash via a 301 redirect, so it avoided the bug in Discourse
$ curl -I https://www.dolibarr.org/forum
HTTP/2 301
...
location: https://www.dolibarr.org/forum/
...