woocommerce/plugins/woocommerce-admin/client/lib/nav-utils.js

12 lines
303 B
JavaScript

/** @format */
/* Returns a string with the site's wp-admin URL appended. JS version of `admin_url`.
* TODO: Test
*
* @param {String} path Relative path.
* @return {String} Full admin URL.
*/
export const getAdminLink = path => {
return wcSettings.adminUrl + 'admin.php?page=woodash#' + path;
};