Depending on the user's system and config, sometimes GetOnlineDoc() will fail when trying to assign the link to the clipboard register (I have the problem with WSL for example).
Also using setreg() instead of let @* would probably be better.
See what can be done about that.