Changes for page XWiki JavaScript API

Last modified by Simon Urli on 2022/09/14

<
From version < 41.2 >
edited by Guillaume Delhumeau
on 2018/05/09
To version < 42.1 >
edited by Guillaume Delhumeau
on 2018/05/09
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -254,7 +254,7 @@
254 254   xm.version // get the current document version (eg: 1.1)
255 255   xm.restURL // get the REST url of the current doc (eg: /xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome)
256 256   xm.form_token // get the current CSRF token that you should pass to your scripts to avoid CSRF attacks.
257 - xm.userId // since 10.4RC1, get the full serialization of the current user (e.g. xwiki:XWiki.Admin)
257 + xm.userReference // since 10.4RC1, get the reference of the current user
258 258  });
259 259  {{/code}}
260 260  

Get Connected