Skip to content

Commit 0f7f871

Browse files
committed
use basename
1 parent 005c337 commit 0f7f871

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ const App = () => (
1515
<TooltipProvider>
1616
<Toaster />
1717
<Sonner />
18-
<BrowserRouter>
18+
<BrowserRouter basename="/NOTED/">
1919
<Routes>
20-
<Route path="/NOTED/" element={<Index />} />
21-
<Route path="/NOTED/docs" element={<Docs />} />
20+
<Route path="/" element={<Index />} />
21+
<Route path="/docs" element={<Docs />} />
2222
{/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */}
2323
<Route path="*" element={<NotFound />} />
2424
</Routes>

src/components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const Header = ({ onFocusMode, notes, tasks }: HeaderProps) => {
3232

3333
{/* Buttons - always centered */}
3434
<div className="flex items-center space-x-1 sm:space-x-3 flex-shrink-0">
35-
<Link to="/NOTED/docs">
35+
<Link to="/docs">
3636
<Button variant="outline" className="glass text-xs sm:text-sm whitespace-nowrap px-2 sm:px-4 h-8 sm:h-10">
3737
<BookOpen className="w-3 h-3 sm:w-4 sm:h-4 sm:mr-2" />
3838
<span className="hidden sm:inline">Docs</span>

src/pages/Docs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const Docs = () => {
3434
<div className="container mx-auto px-4 py-6">
3535
{/* Header */}
3636
<div className="flex items-center space-x-4 mb-8">
37-
<Link to="/NOTED/">
37+
<Link to="/">
3838
<Button variant="ghost" size="icon" className="glass">
3939
<ArrowLeft className="h-4 w-4" />
4040
</Button>

src/pages/NotFound.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const NotFound = () => {
1717
<h1 className="text-4xl text-violet-500 font-bold mb-4">404</h1>
1818
<p className="text-xl text-gray-300 mb-4">Kowalski, Status Report.</p>
1919
<p className="text-m text-gray-600 mb-4">This page was not found, sir.</p>
20-
<a href="/NOTED/" className="text-blue-500 hover:text-blue-700 underline">
20+
<a href="/" className="text-blue-500 hover:text-blue-700 underline">
2121
Take me back home
2222
</a>
2323
</div>

0 commit comments

Comments
 (0)