Skip to content

Commit 84287c4

Browse files
authored
Updated ActivityPub default error screen to redirect to the new homepage (#24620)
closes https://linear.app/ghost/issue/PROD-2414 - in Ghost 6.0, the new Admin homepage is /analytics, as opposed to the previous /dashboard
1 parent ba8f457 commit 84287c4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/admin-x-activitypub/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tryghost/admin-x-activitypub",
3-
"version": "0.9.17",
3+
"version": "0.9.18",
44
"license": "MIT",
55
"repository": {
66
"type": "git",

apps/admin-x-activitypub/src/components/layout/Error/Error.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ const Error = ({statusCode}: {statusCode?: number}) => {
88
const routeError = useRouteError();
99
const navigate = useNavigate();
1010

11-
const toDashboard = (e: React.MouseEvent<HTMLElement>) => {
11+
const toAnalytics = (e: React.MouseEvent<HTMLElement>) => {
1212
e.preventDefault();
13-
navigate('/dashboard', {crossApp: true});
13+
navigate('/analytics', {crossApp: true});
1414
};
1515

1616
if (routeError) {
@@ -56,7 +56,7 @@ const Error = ({statusCode}: {statusCode?: number}) => {
5656
<div className="admin-x-error max-w-xl">
5757
<h1>Loading interrupted</h1>
5858
<p>They say life is a series of trials and tribulations. This moment right here? It&apos;s a tribulation. Our app was supposed to load, and yet here we are. Loadless. Click back to the dashboard to try again.</p>
59-
<a className='cursor-pointer text-green' onClick={toDashboard}>&larr; Back to the dashboard</a>
59+
<a className='cursor-pointer text-green' onClick={toAnalytics}>&larr; Back to the homepage</a>
6060
</div>
6161
</div>
6262
);

0 commit comments

Comments
 (0)