sometimes I think I'm going mad, other times I know it is true...
you are correct, even the statically entered URL has the local db name prepended.
I really do need server-relative URLs as the Domino server is accessed via a reverse proxy, and trying to build a URL including protocol, server name and port via calls like context.getURL () only know the directly accessed value on the server.
I suppose I can forgo using xp:link and build my own using computed text. Just more work.
Rich