Chatwoot/app/javascript/dashboard/helper/URLHelper.js

7 lines
215 B
JavaScript
Raw Normal View History

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