We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 392c219 commit a78b606Copy full SHA for a78b606
www/src/pages/theme/themes/SiderMenus.tsx
@@ -32,11 +32,9 @@ export function SiderMenus() {
32
.filter(Boolean)
33
.map((item) => item?.slice(0, 1).toUpperCase() + item?.slice(1).toLowerCase())
34
.join(' ');
35
+ const href = `/theme/data/${_name}${_theme ? `/${_theme}` : ''}${other ? `/${other.join('/')}` : ''}`;
36
return (
- <MenuItem
37
- key={key}
38
- to={`/theme/data/${_name}${_theme ? `/${_theme}` : ''}${other ? `/${other.join('/')}` : ''}`}
39
- >
+ <MenuItem key={key} to={href.replace(/\/$/gi, '')}>
40
{title}
41
</MenuItem>
42
);
0 commit comments