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]
|
#[component]
|
||||||
pub fn About() -> impl IntoView {
|
pub fn About() -> impl IntoView {
|
||||||
view! {
|
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 />
|
<hr />
|
||||||
<div class="container" >
|
<div class="container" >
|
||||||
<Router // TODO maybe set base="/web" ?
|
<Router // TODO maybe set base="/web" ?
|
||||||
|
trailing_slash=TrailingSlash::Redirect
|
||||||
fallback=move || view! {
|
fallback=move || view! {
|
||||||
<div class="center">
|
<div class="center">
|
||||||
<h3>nothing to see here!</h3>
|
<h3>nothing to see here!</h3>
|
||||||
|
@ -79,7 +80,6 @@ fn main() {
|
||||||
<Route path="/web/objects/:id" view=ObjectPage />
|
<Route path="/web/objects/:id" view=ObjectPage />
|
||||||
|
|
||||||
<Route path="/" view=move || view! { <Redirect path="/web" /> } />
|
<Route path="/" view=move || view! { <Redirect path="/web" /> } />
|
||||||
<Route path="/web/" view=move || view! { <Redirect path="/web" /> } />
|
|
||||||
</Routes>
|
</Routes>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue