v6 of react-router-dom is now supported everywhere, and leaving the event listener can cause navigation bugs. See gkarat/ocp-advisor-frontend#101 as an example.
5 lines
139 B
JavaScript
5 lines
139 B
JavaScript
function resolveRelPath(path = '') {
|
|
return `/insights/image-builder${path.length > 0 ? `/${path}` : ''}`;
|
|
}
|
|
|
|
export { resolveRelPath };
|