1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-08-01 13:37:49 +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::{ use crate::{
asset, asset,
page::cube, page::{
cube,
MANIFEST,
},
}; };
pub async fn handler() -> impl IntoResponse { pub async fn handler() -> impl IntoResponse {
@ -20,7 +23,7 @@ pub async fn handler() -> impl IntoResponse {
array::from_fn(|_| { array::from_fn(|_| {
html! { html! {
.frame { .frame {
a href="/" { "404" } a href=(MANIFEST.package.as_ref().unwrap().homepage().unwrap()) { "404" }
} }
.square .black {} .square .black {}
.square .magenta {} .square .magenta {}