Use the document id in links so that they remain constant even if a document changes names

[#79483296]
Fix typo for getting default codap server url

[#78742620]