mirror of
https://github.com/RGBCube/Site
synced 2025-07-31 13:07:46 +00:00
Redirect to real root in 404 page
This commit is contained in:
parent
f18e94f33b
commit
a8741a2f5a
1 changed files with 5 additions and 2 deletions
|
@ -8,7 +8,10 @@ use maud::html;
|
|||
|
||||
use crate::{
|
||||
asset,
|
||||
page::cube,
|
||||
page::{
|
||||
cube,
|
||||
MANIFEST,
|
||||
},
|
||||
};
|
||||
|
||||
pub async fn handler() -> impl IntoResponse {
|
||||
|
@ -20,7 +23,7 @@ pub async fn handler() -> impl IntoResponse {
|
|||
array::from_fn(|_| {
|
||||
html! {
|
||||
.frame {
|
||||
a href="/" { "404" }
|
||||
a href=(MANIFEST.package.as_ref().unwrap().homepage().unwrap()) { "404" }
|
||||
}
|
||||
.square .black {}
|
||||
.square .magenta {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue