Skip to content

Commit 69fe906

Browse files
unitmatrixAleksandr Cupacenko
andauthored
fix context decoding issue in Installed component (#563)
remove redundant code correct encode decode Co-authored-by: Aleksandr Cupacenko <[email protected]>
1 parent 3b0b44f commit 69fe906

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const PageLayout = () => {
3535
const SyncContext: React.FC = () => {
3636
const { context } = useParams();
3737
if (context) {
38-
apiService.setCluster(context);
38+
apiService.setCluster(decodeURIComponent(context));
3939
}
4040

4141
return <Outlet />;

frontend/src/pages/Installed.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function Installed() {
2121

2222
const handleClusterChange = (clusterName: string) => {
2323
navigate({
24-
pathname: `/${clusterName}/installed`,
24+
pathname: `/${encodeURIComponent(clusterName)}/installed`,
2525
});
2626
};
2727

0 commit comments

Comments
 (0)