mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 02:16:03 +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,
|
||||
} = modifiedData;
|
||||
const _sort = `${defaultSortBy}:${defaultSortOrder}`;
|
||||
|
||||
history.replace(
|
||||
`/plugins/${pluginId}/${kind}/${uid}?${stringify({
|
||||
const goBackSearch = `${stringify(
|
||||
{
|
||||
page: 1,
|
||||
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
|
||||
class="col-md-9 content"
|
||||
style="padding: 0px 30px;"
|
||||
class="col-md-9"
|
||||
style="padding: 0px;"
|
||||
>
|
||||
<div
|
||||
class="c3"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user