<
From version < 48.1 >
edited by Guillaume Delhumeau
on 2015/08/26
To version < 49.1 >
edited by Thomas Mortagne
on 2015/09/01
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.gdelhumeau
1 +XWiki.ThomasMortagne
Content
... ... @@ -965,10 +965,14 @@
965 965  
966 966  = Generate a REST URL for a resource =
967 967  
968 -If you need to generate a REST URL for a resource inside a script, you can use the REST script services:
968 +If you need to generate a REST URL as String for a resource inside a script, you can use the REST script services:
969 969  
970 970  {{code language="velocity"}}
971 +## Return a relative URL String unless the reference wiki is different from the current wiki
971 971  $services.rest.url($entityReference)
973 +
974 +## Force returning an external form URL String, false as second parameter would have the same effect that the previous call
975 +$services.rest.url($entityReference, true)
972 972  {{/code}}
973 973  
974 974  Where ##$entityReference## could be:

Get Connected