diff --git a/src/routes.json b/src/routes.json index b548258f3..935319a5e 100644 --- a/src/routes.json +++ b/src/routes.json @@ -198,11 +198,11 @@ "title": "Microworlds" }, { - "name": "preview", - "pattern": "^/preview(/editor|(/\\d+(/editor|/fullscreen)?)?)?/?(\\?.*)?$", - "routeAlias": "/preview/?$", + "name": "projects", + "pattern": "^/projects(/editor|(/\\d+(/editor|/fullscreen)?)?)?/?(\\?.*)?$", + "routeAlias": "/projects/?$", "view": "preview/preview", - "title": "Scratch 3.0 Preview" + "title": "Scratch Project" }, { "name": "3faq", diff --git a/src/views/preview/preview.jsx b/src/views/preview/preview.jsx index 61b673b9a..6403f04f4 100644 --- a/src/views/preview/preview.jsx +++ b/src/views/preview/preview.jsx @@ -66,7 +66,7 @@ class Preview extends React.Component { ]); const pathname = window.location.pathname.toLowerCase(); const parts = pathname.split('/').filter(Boolean); - // parts[0]: 'preview' + // parts[0]: 'projects' // parts[1]: either :id or 'editor' // parts[2]: undefined if no :id, otherwise either 'editor' or 'fullscreen' @@ -267,7 +267,7 @@ class Preview extends React.Component { if (!this.props.playerMode) modePath = 'editor/'; // fullscreen overrides editor if (this.props.fullScreen) modePath = 'fullscreen/'; - const newPath = `/preview/${idPath}${modePath}`; + const newPath = `/projects/${idPath}${modePath}`; if (push) { history.pushState( {}, @@ -782,7 +782,7 @@ GUI.setAppElement(document.getElementById('app')); const initGuiState = guiInitialState => { const pathname = window.location.pathname.toLowerCase(); const parts = pathname.split('/').filter(Boolean); - // parts[0]: 'preview' + // parts[0]: 'projects' // parts[1]: either :id or 'editor' // parts[2]: undefined if no :id, otherwise either 'editor' or 'fullscreen' if (parts.indexOf('editor') === -1) { diff --git a/src/views/preview/remix-credit.jsx b/src/views/preview/remix-credit.jsx index b20853096..15a83cca1 100644 --- a/src/views/preview/remix-credit.jsx +++ b/src/views/preview/remix-credit.jsx @@ -25,7 +25,7 @@ const RemixCredit = props => { ), projectLink: ( {projectInfo.title}