Hi! By doing some more research, I found that I’m facing the same issue on a new XWiki Debian 17.7.0 on Ubuntu 24.04.3 LTS box. In my case, the host part of the URLs in notifications points to http://localhost:8080. I will keep this thread posted if I find the solution. There are several related forum entries we need to pay attention to.
For instance:
…and…
Setting xwiki.home did the trick for me. No side effects identified so far. Annotation works fine. The variable reads now:
xwiki.home=https://our.public.domain.name/
Our XWiki server is behind a Nginx proxy, but I don’t find any reason why it must not work in your environment.