Revision 0f7f5d70
Added by Maria Agaphontzev almost 5 years ago
webpack/assets/javascripts/react_app/common/urlHelpers.js | ||
---|---|---|
if (navigateTo) navigateTo(uri.toString());
|
||
else window.Turbolinks.visit(uri.toString());
|
||
};
|
||
|
||
export const exportURL = () => {
|
||
const href = getURI();
|
||
return `${href.pathname()}${href.search()}.csv`;
|
||
};
|
Also available in: Unified diff
Fixes #27702 - creates export button component