mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
Merge pull request #11994 from strapi/fix/11991
Fix menu link without search in CM
This commit is contained in:
commit
1bbe394df9
@ -108,8 +108,10 @@ const LeftMenu = () => {
|
||||
badgeLabel={section.links.length.toString()}
|
||||
>
|
||||
{section.links.map(link => {
|
||||
const search = link.search ? `?${link.search}` : '';
|
||||
|
||||
return (
|
||||
<SubNavLink key={link.uid} to={`${link.to}?${link.search}`}>
|
||||
<SubNavLink key={link.uid} to={`${link.to}${search}`}>
|
||||
{link.title}
|
||||
</SubNavLink>
|
||||
);
|
||||
|
@ -591,7 +591,7 @@ describe('Content manager | App | main', () => {
|
||||
<a
|
||||
aria-current="page"
|
||||
class="c24 c25 active"
|
||||
href="/content-manager/collectionType/category?undefined"
|
||||
href="/content-manager/collectionType/category"
|
||||
>
|
||||
<div
|
||||
class="c17"
|
||||
@ -662,7 +662,7 @@ describe('Content manager | App | main', () => {
|
||||
<li>
|
||||
<a
|
||||
class="c24 c25"
|
||||
href="/homepage?undefined"
|
||||
href="/homepage"
|
||||
>
|
||||
<div
|
||||
class="c17"
|
||||
|
Loading…
x
Reference in New Issue
Block a user