mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Merge pull request #2766 from paulkaplan/fix-fullscreen-id-0
Prevent seeing /projects/0/fullscreen URL
This commit is contained in:
commit
4b38da1917
1 changed files with 3 additions and 0 deletions
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in a new issue