Skip to content

Commit

Permalink
Merge pull request #27 from INESCTEC/feat/workflow
Browse files Browse the repository at this point in the history
Trying to fix redirect
  • Loading branch information
MJBranco18 authored Dec 15, 2024
2 parents 53f7933 + ea19d50 commit 70075cc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"homepage": "https://INESCTEC.github.io",
"homepage": "https://inesctec.github.io/",
"name": "github-pages",
"version": "0.1.0",
"private": true,
Expand Down
14 changes: 14 additions & 0 deletions public/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url=/" />
<script>
const pathname = window.location.pathname;
const search = window.location.search;
window.location.replace("/?" + pathname.slice(1) + search);
</script>
</head>
<body>
Redirecting...
</body>
</html>
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ProjectsPage from './pages/ProjectsPage';

function App() {
return (
<Router>
<Router basename="/">
<div className="App">
<Routes>
<Route path="/" element={<HomePage />} />
Expand Down

0 comments on commit 70075cc

Please sign in to comment.