mirror of
https://github.com/strapi/strapi.git
synced 2025-11-08 06:07:41 +00:00
Fix go back
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
This commit is contained in:
parent
07febedc46
commit
10dd1579ac
@ -149,13 +149,16 @@ const SettingsViewWrapper = ({
|
|||||||
uid,
|
uid,
|
||||||
} = modifiedData;
|
} = modifiedData;
|
||||||
const _sort = `${defaultSortBy}:${defaultSortOrder}`;
|
const _sort = `${defaultSortBy}:${defaultSortOrder}`;
|
||||||
|
const goBackSearch = `${stringify(
|
||||||
history.replace(
|
{
|
||||||
`/plugins/${pluginId}/${kind}/${uid}?${stringify({
|
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize,
|
pageSize,
|
||||||
})}&_sort=${_sort}${pluginsQueryParams ? `&${pluginsQueryParams}` : ''}`
|
_sort,
|
||||||
);
|
},
|
||||||
|
{ encode: false }
|
||||||
|
)}${pluginsQueryParams ? `&${pluginsQueryParams}` : ''}`;
|
||||||
|
|
||||||
|
history.replace(`/plugins/${pluginId}/${kind}/${uid}?${goBackSearch}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -391,8 +391,8 @@ describe('Content manager | App | main', () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="col-md-9 content"
|
class="col-md-9"
|
||||||
style="padding: 0px 30px;"
|
style="padding: 0px;"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="c3"
|
class="c3"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user