FluidFramework icon indicating copy to clipboard operation
FluidFramework copied to clipboard

appendLocatorParam function in odspURLResolverForShareLink

Open pragya91 opened this issue 1 year ago • 0 comments

  • New utility function in odspUrlResolverForShareLink class of odsp-driver which can add locator parameter (nav param) to the base url provided as an input to the function.
  • One of the immediate use-cases for this utility is that when the host application has a sharing link (say generated from using the SingleRT feature), the host application can create a re-loadable link to the fluid component by calling this utility. Up until now, the host apps had to rely on the getAbsoluteUrl method, which was not ideal as it made a network call to odsp to get the absolute url for the resource.
  • Added tests as well to test the complete resolvedUrl information is preserved in the nav param, and to test that no other params are disturbed in the original url provided.

pragya91 avatar Feb 15 '24 20:02 pragya91