Skip to content

Commit 46581d8

Browse files
committed
try fix route error
1 parent 8fcff80 commit 46581d8

File tree

4 files changed

+2
-36
lines changed

4 files changed

+2
-36
lines changed

index.html

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,6 @@
55
<link rel="icon" type="image/png" href="/logo.png" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Open Courses | KrimsonSquad</title>
8-
<script type="text/javascript">
9-
(function(l) {
10-
if (l.search[1] === '/' ) {
11-
var decoded = l.search.slice(1).split('&').map(function(s) {
12-
return s.replace(/~and~/g, '&')
13-
}).join('?');
14-
window.history.replaceState(null, null,
15-
l.pathname.slice(0, -1) + decoded + l.hash
16-
);
17-
}
18-
}(window.location))
19-
</script>
208
</head>
219
<body>
2210
<div id="root"></div>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "coursekrimson",
3-
"private": true,
3+
"private": false,
44
"version": "0.0.0",
55
"type": "module",
66
"scripts": {

public/404.html

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function App() {
1616
// });
1717
// });
1818
return (
19-
<Router basename='/'>
19+
<Router>
2020
<div className='App'>
2121
<div className="auth-wrapper">
2222
<div className="auth-inner">

0 commit comments

Comments
 (0)