1
Fork 0
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:
RGBCube 2024-01-10 12:53:59 +03:00
parent f18e94f33b
commit a8741a2f5a
No known key found for this signature in database

View file

@ -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 {}