Chatwoot/app/javascript/dashboard/helper/URLHelper.js
2019-10-16 14:36:17 +05:30

6 lines
215 B
JavaScript

import queryString from 'query-string';
export const frontendURL = (path, params) => {
const stringifiedParams = params ? `?${queryString.stringify(params)}` : '';
return `/app/${path}${stringifiedParams}`;
};