fix(editor): add referrer param for the workflow page (#4600)
This commit is contained in:
parent
4789d20538
commit
562a8e06b4
@ -446,6 +446,10 @@ function mapStateToProps(state, ownProps) {
|
||||
const localBackup = entryDraft.get('localBackup');
|
||||
const draftKey = entryDraft.get('key');
|
||||
let editorBackLink = `/collections/${collectionName}`;
|
||||
if (new URLSearchParams(ownProps.location.search).get('ref') === 'workflow') {
|
||||
editorBackLink = `/workflow`;
|
||||
}
|
||||
|
||||
if (collection.has('nested') && slug) {
|
||||
const pathParts = slug.split('/');
|
||||
if (pathParts.length > 2) {
|
||||
|
@ -209,7 +209,7 @@ class WorkflowList extends React.Component {
|
||||
);
|
||||
const slug = entry.get('slug');
|
||||
const collectionName = entry.get('collection');
|
||||
const editLink = `collections/${collectionName}/entries/${slug}`;
|
||||
const editLink = `collections/${collectionName}/entries/${slug}?ref=workflow`;
|
||||
const ownStatus = entry.get('status');
|
||||
const collection = collections.find(
|
||||
collection => collection.get('name') === collectionName,
|
||||
|
Loading…
x
Reference in New Issue
Block a user