fix(web): trailing slashes and better about
This commit is contained in:
parent
d1a8b1a74b
commit
3abcd18c37
2 changed files with 7 additions and 2 deletions
|
@ -364,7 +364,12 @@ pub fn InlineActivity(activity: serde_json::Value) -> impl IntoView {
|
|||
#[component]
|
||||
pub fn About() -> impl IntoView {
|
||||
view! {
|
||||
<p>pick a timeline to start browsing</p>
|
||||
<div class="ml-1">
|
||||
<div class="tl-header w-100 center mb-s" >landing</div>
|
||||
<div class="boxscroll mt-s mb-s" >
|
||||
nothing to see here! pick a timeline to start browsing
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@ fn main() {
|
|||
<hr />
|
||||
<div class="container" >
|
||||
<Router // TODO maybe set base="/web" ?
|
||||
trailing_slash=TrailingSlash::Redirect
|
||||
fallback=move || view! {
|
||||
<div class="center">
|
||||
<h3>nothing to see here!</h3>
|
||||
|
@ -79,7 +80,6 @@ fn main() {
|
|||
<Route path="/web/objects/:id" view=ObjectPage />
|
||||
|
||||
<Route path="/" view=move || view! { <Redirect path="/web" /> } />
|
||||
<Route path="/web/" view=move || view! { <Redirect path="/web" /> } />
|
||||
</Routes>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue