source:
sources/client/src/utils/onClickRouting.js@
0ad69c1
Last change on this file since 0ad69c1 was 3a58bd6, checked in by , 3 years ago | |
---|---|
|
|
File size: 220 bytes |
Line | |
---|---|
1 | export default function onClickRouting(path, history) { |
2 | const currentPath = history.location.pathname; |
3 | if (currentPath === path) { |
4 | history.replace(path); |
5 | return; |
6 | } |
7 | history.push(path); |
8 | }; |
9 |
Note:
See TracBrowser
for help on using the repository browser.