Webfinger responds with trailing slash

Hey,

I wanted to use my current self-hosted instance as an identity provider. Unfortunately the .well-known/webfinger returns the href with a trailing slash, while .well-known/openid-configuration returns it without.

My external_url is set without the trailing slash becuase from what I understand ommitting it is recommended.

I can’t seem to find where this behaviour is to be configured. Any pointers? Cheers, rando