Add link to homepage to 404 error page (#40369)

This commit is contained in:
diondiondion
2026-09-03 16:33:28 +00:00
committed by Claire
parent 4ebd62e952
commit b2bb4087eb
3 changed files with 4 additions and 1 deletions

View File

@@ -185,6 +185,7 @@ body {
font-size: 20px;
line-height: 28px;
font-weight: 400;
margin-bottom: var(--space-md);
}
}
}

View File

@@ -12,8 +12,9 @@
= theme_style_tags Setting.default_settings['theme']
= vite_typescript_tag 'error.ts', crossorigin: 'anonymous'
%body.error
.dialog
%main.dialog
.dialog__illustration
%img{ alt: Setting.default_settings['site_title'], src: '/oops.png' }/
.dialog__message
%h1= yield :content
%a{ class: 'button button-secondary', href: '/' }= t('errors.go_home')

View File

@@ -1596,6 +1596,7 @@ en:
content: We're sorry, but something went wrong on our end.
title: This page is not correct
'503': The page could not be served due to a temporary server failure.
go_home: Go home
noscript_html: To use the Mastodon web application, please enable JavaScript. Alternatively, try one of the <a href="%{apps_path}">native apps</a> for Mastodon for your platform.
existing_username_validator:
not_found: could not find a local user with that username