FluidFramework
FluidFramework copied to clipboard
appendLocatorParam function in odspURLResolverForShareLink
- New utility function in
odspUrlResolverForShareLinkclass of odsp-driver which can add locator parameter (navparam) 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
SingleRTfeature), 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 thegetAbsoluteUrlmethod, 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
navparam, and to test that no other params are disturbed in the original url provided.