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

...xist
See my first comment, I'm not talking about DocumentReference#getURL. You have several different XWiki#getURL, the one you are using take a String but there is one taking directly the DocumentReference. See http://maven.xwiki.org/site/docs/xwiki-javadoc-5.0.x/com/xpn/xwiki/api/XWiki.html#getURL%28org.xwiki.model.reference.DocumentReference,%20java.lang.String,%20java.lang.String%29.