Merge pull request #2766 from paulkaplan/fix-fullscreen-id-0

Prevent seeing /projects/0/fullscreen URL
This commit is contained in:
Paul Kaplan 2019-02-11 15:33:17 -05:00 committed by GitHub
commit 4b38da1917
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -410,6 +410,9 @@ class Preview extends React.Component {
this.setState({isProjectLoaded: true});
}
pushHistory (push) {
// Do not push history for projects without a real ID
if (this.state.projectId === '0') return;
// update URI to match mode
const idPath = this.state.projectId ? `${this.state.projectId}/` : '';
let modePath = '';