@@ -22,7 +22,7 @@ import makeStyles from "@mui/styles/makeStyles";
22
22
import { Theme } from "@mui/material/styles" ;
23
23
import { Link , useNavigate } from "react-router-dom" ;
24
24
import { objectBrowserCommon } from "../Common/FormComponents/common/styleLibrary" ;
25
- import { encodeURLString } from "../../../common/utils" ;
25
+ import { encodeURLString , safeDecodeURIComponent } from "../../../common/utils" ;
26
26
import { Button , CopyIcon , NewPathIcon , Tooltip , Breadcrumbs } from "mds" ;
27
27
import { hasPermission } from "../../../common/SecureComponent" ;
28
28
import {
@@ -127,17 +127,26 @@ const BrowserBreadcrumbs = ({
127
127
< Fragment key = { `breadcrumbs-${ index . toString ( ) } ` } >
128
128
< span className = { classes . slashSpacingStyle } > /</ span >
129
129
{ index === lastBreadcrumbsIndex ? (
130
- < span style = { { cursor : "default" } } > { objectItem } </ span >
130
+ < span style = { { cursor : "default" , whiteSpace : "pre" } } >
131
+ { safeDecodeURIComponent ( objectItem ) /*Only for display*/ }
132
+ </ span >
131
133
) : (
132
134
< Link
135
+ style = { {
136
+ whiteSpace : "pre" ,
137
+ } }
133
138
to = { route }
134
139
onClick = { ( ) => {
135
140
dispatch (
136
141
setVersionsModeEnabled ( { status : false , objectName : "" } )
137
142
) ;
138
143
} }
139
144
>
140
- { objectItem }
145
+ {
146
+ safeDecodeURIComponent (
147
+ objectItem
148
+ ) /*Only for display to preserve */
149
+ }
141
150
</ Link >
142
151
) }
143
152
</ Fragment >
@@ -210,6 +219,9 @@ const BrowserBreadcrumbs = ({
210
219
/>
211
220
) }
212
221
< Breadcrumbs
222
+ sx = { {
223
+ whiteSpace : "pre" ,
224
+ } }
213
225
goBackFunction = { goBackFunction }
214
226
additionalOptions = {
215
227
< Fragment >
0 commit comments