There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-2a78ee85-1bac-41ea-9c14-471b3995a604 XWIKI-20623 Open

JS function XWiki.Document#getURL does not take into account the wiki name

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-240a158f-a94a-4dbc-b2ea-dbbbdddd6862 Marius Dumitru Florea on 15/Oct/26 12:32
 

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.