XWIKI-10814: "create document" form: add links if the document already e...

...xist
I'm sorry, I don't know what you want...(I use xwiki.getURL)
Do you want one line like this?
$services.localization.render('core.create.page.error.docalreadyexists', ["${space}.${page}", $xwiki.getURL("$services.model.createDocumentReference('', $space, $page)", 'view'), $xwiki.getURL("$services.model.createDocumentReference('', $space, $page)", 'edit')])