Fix go back

Signed-off-by: HichamELBSI <elabbassih@gmail.com>
This commit is contained in:
HichamELBSI 2021-06-16 16:41:55 +02:00
parent 07febedc46
commit 10dd1579ac
2 changed files with 10 additions and 7 deletions

View File

@ -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}`);
} }
}; };

View File

@ -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"