File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 < meta charset ="utf-8 " />
55 < title > Pasteur Laboratuvarı - Sayfa Bulunamadı</ title >
66 < script >
7- const path = window . location . pathname . replace ( "/pasteur-lab" , "" ) ;
8- window . location . replace ( "/pasteur-lab/ ?redirect=" + path ) ;
7+ const path = window . location . pathname ;
8+ window . location . replace ( "/?redirect=" + path ) ;
99 </ script >
1010 </ head >
1111 < body > </ body >
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const App = () => (
4444 < TooltipProvider >
4545 < Toaster />
4646 < Sonner />
47- < BrowserRouter basename = "/pasteur-lab" >
47+ < BrowserRouter >
4848 < ScrollToTop />
4949 < Routes >
5050 < Route path = "/" element = { < Index /> } />
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const params = new URLSearchParams(window.location.search);
66const redirect = params . get ( "redirect" ) ;
77
88if ( redirect ) {
9- window . history . replaceState ( null , "" , "/pasteur-lab" + redirect ) ;
9+ window . history . replaceState ( null , "" , redirect ) ;
1010}
1111
1212createRoot ( document . getElementById ( "root" ) ! ) . render ( < App /> ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import react from "@vitejs/plugin-react-swc";
33import path from "path" ;
44
55export default defineConfig ( ( ) => ( {
6- base : "/pasteur-lab/" ,
76 plugins : [ react ( ) ] ,
87 resolve : {
98 alias : {
You can’t perform that action at this time.
0 commit comments