Commit 07568b0f authored by Ben Wheeler's avatar Ben Wheeler

remove editor from url when not appropriate

parent 1adca180
......@@ -470,7 +470,9 @@ class Preview extends React.Component {
if (projectId === '0') {
newUrl = `/${parts[0]}/editor`;
} else {
newUrl = `/${parts[0]}/${projectId}/editor`;
let modePath = '';
if (!this.props.playerMode) modePath = '/editor';
newUrl = `/${parts[0]}/${projectId}${modePath}`;
}
history.pushState(
{projectId: projectId},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment