UNPKG

@automattic/calypso-url

Version:

This library provides both generic and Calypso-specific utilities for handling URLs.

10 lines 479 B
/** * From wp-admin contexts: gets the Calypso origin from the `wpcom_origin` query arg * and compares it against a list of allowed wpcom origins. Helps to maintain consistent * interlinking in Calypso dev/testing contexts. * * @param path Optional path to append to the origin * @returns The origin if it's allowed, otherwise the default origin (wordpress.com) */ export declare function getCalypsoUrl(path?: string): string; //# sourceMappingURL=get-calypso-url.d.ts.map