Skip to content

Commit

Permalink
Correct Vite paths 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
mblomdahl authored Dec 4, 2024
1 parent 1380ec7 commit a9d5565
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ const App = () => (
<TooltipProvider>
<Toaster />
<Sonner />
<BrowserRouter>
<BrowserRouter basename="/cv">
<Routes>
<Route path="/cv/:lang" element={<Index />} />
<Route path="/" element={<Navigate to="/cv/sv" replace />} />
<Route path="/:lang" element={<Index />} />
<Route path="/" element={<Navigate to="/sv" replace />} />
</Routes>
</BrowserRouter>
</TooltipProvider>
Expand Down
2 changes: 1 addition & 1 deletion src/components/LanguageSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const LanguageSelector = () => {

const handleLanguageChange = (lang: 'en' | 'sv') => {
setLanguage(lang);
navigate(`/cv/${lang}`);
navigate(`/${lang}`);
};

return (
Expand Down

0 comments on commit a9d5565

Please sign in to comment.