Skip to content

Commit

Permalink
404.html remove and coping index.html to 404.html used
Browse files Browse the repository at this point in the history
Signed-off-by: Jitendra Gundaniya <[email protected]>
  • Loading branch information
jitu5 committed Nov 11, 2024
1 parent 3088376 commit afdcbc5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 37 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"proxy": "http://localhost:4142/",
"scripts": {
"build": "cross-env GENERATE_SOURCEMAP=false react-scripts build",
"build": "cross-env GENERATE_SOURCEMAP=false react-scripts build && cp ./build/index.html ./build/404.html",
"postbuild": "rm -rf build/api",
"start": "REACT_APP_DATA_SOURCE=$DATA NODE_OPTIONS=\"--dns-result-order=ipv4first\" npm-run-all -p start:app start:lib",
"start:dev": "rm -rf node_modules/.cache && npm start",
Expand Down
29 changes: 0 additions & 29 deletions public/404.html

This file was deleted.

7 changes: 0 additions & 7 deletions src/components/wrapper/wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ export const Wrapper = ({ displayGlobalNavigation, theme }) => {
}
}, [versionData]);

const handleRedirect = () => {
let ghpRedirectPath = localStorage.getItem('ghp-redirect-path');
localStorage.removeItem('ghp-redirect-path');
return ghpRedirectPath ? <Redirect exact to={ghpRedirectPath} /> : null;
};

return (
<div
className={classnames('kedro-pipeline kedro', {
Expand All @@ -71,7 +65,6 @@ export const Wrapper = ({ displayGlobalNavigation, theme }) => {
/>
)}
<Switch>
{handleRedirect()}
<Route exact path={sanitizedPathname()}>
<FlowChartWrapper />
<FeatureHints />
Expand Down

0 comments on commit afdcbc5

Please sign in to comment.