Skip to content

Commit

Permalink
Can't navigate to index html, so going to / path for legacy (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
torch2424 authored May 19, 2019
1 parent 23dc7c4 commit 1006b2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/controlPanel/legacy/legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class Legacy extends Component {
// Find the version of the saveState in the legacy versions
const legacyVersion = packageJson.legacyVersions[packageJson.legacyVersions.indexOf(version)];
// Redirect to the legacy vaporby version
window.location.pathname = `/legacy/vaporboy-${legacyVersion}/index.html`;
window.location.pathname = `/legacy/vaporboy-${legacyVersion}/`;
}

render() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/controlPanel/loadStateList/loadStateList.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default class LoadStateList extends Component {

if (legacyVersion) {
// Redirect to the legacy vaporby version
window.location.pathname = `/legacy/vaporboy-${legacyVersion}/index.html`;
window.location.pathname = `/legacy/vaporboy-${legacyVersion}/`;
} else {
throw new Error('Could not find correct legacy version');
}
Expand Down

0 comments on commit 1006b2c

Please sign in to comment.