Skip to content
This repository has been archived by the owner on Dec 7, 2024. It is now read-only.

Commit

Permalink
fix: update routes to reflect GitHub Pages
Browse files Browse the repository at this point in the history
fix: this might fix 404

fix: remove 404. maybe this will help.

fix: add base prop /nova to Router and Routes

fix: remove / from path

fix: remove slashes from base props
  • Loading branch information
mazziechai committed Mar 26, 2024
1 parent a0fb9cd commit 4ec1406
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
8 changes: 3 additions & 5 deletions nova-playground/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use leptos_router::*;

// Top-Level pages
use crate::pages::home::Home;
use crate::pages::not_found::NotFound;

// Modules
mod components;
Expand All @@ -26,10 +25,9 @@ pub fn App() -> impl IntoView {
<Meta charset="UTF-8"/>
<Meta name="viewport" content="width=device-width, initial-scale=1.0"/>

<Router>
<Routes>
<Route path="/" view=Home/>
<Route path="/*" view=NotFound/>
<Router base="nova">
<Routes base="nova".to_string()>
<Route path="" view=Home/>
</Routes>
</Router>
}
Expand Down
1 change: 0 additions & 1 deletion nova-playground/src/pages/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
pub mod home;
pub mod not_found;
7 changes: 0 additions & 7 deletions nova-playground/src/pages/not_found.rs

This file was deleted.

0 comments on commit 4ec1406

Please sign in to comment.