We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b31bffa commit a699374Copy full SHA for a699374
1 file changed
client/src/pages/System.jsx
@@ -45,8 +45,13 @@ const System = () => {
45
const refreshRequired = name !== currentTab && organizationTabs.includes(name) &&
46
organizationTabs.includes(currentTab);
47
setCurrentTab(name);
48
- const path = encodeURIComponent(`/system/${name}`);
49
- navigate(refreshRequired ? `/refresh-route/${path}` : path);
+ const newPath = `/system/${name}`;
+ if (refreshRequired) {
50
+ const encodedPath = encodeURIComponent(newPath);
51
+ navigate(`/refresh-route/${encodedPath}`);
52
+ } else {
53
+ navigate(newPath, {replace: true});
54
+ }
55
}
56
57
const renderCurrentTab = () => {
0 commit comments