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

View File

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