Merge pull request #5342 from strapi/fix/ctm-related-redirect

Fixes the wrong redirection in content manager
This commit is contained in:
cyril lopez 2020-02-27 16:56:24 +01:00 committed by GitHub
commit a5cfe98c70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,7 +127,8 @@ const EditView = ({
const redirectURL = search
.split('redirectUrl=')
.filter((_, index) => index !== 0)
.join('');
.join('redirectUrl=');
const redirectToPreviousPage = () => push(redirectURL);
return (