@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
20 lines • 670 B
TypeScript
/**
* NOTE: WORKS ONLY ON CURRENT TENANT
* returns this:
* https://tenant.sharepoint.com/sites/SiteCollection
*
* Use makeAbsoluteUrl if you need the full Url after the collection
*
* @param link
* @returns
*/
export declare function getSiteCollectionUrlFromLink(link: string): string;
/**
* returns this:
* https://tenant.sharepoint.com/sites/SiteCollection/Subsite/SitePages/Page.aspx
*
* NOTE This only works when the /[ sites | teams ]/ you are refering to is in the same tenant
* @param relUrl
*/
export declare function makeAbsoluteUrl(useUrl: string): string;
//# sourceMappingURL=getSiteCollectionUrlFromLink.d.ts.map