I prefer an async URL factory API that requests the needed wiki URL template on demand, and caches it. I wouldn't preload the URL templates for all the available wikis because there can be a lot of them, and we rarely need all, if ever. I'm not sure what's the best name for this API though. I'm not too fond of getURLAsync but it can work.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.