From 83a027ac2bc1edddef41a51877320fa1c827619a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Zaninotto?= Date: Tue, 23 Jan 2024 12:42:47 +0100 Subject: [PATCH] [Doc] Fix link to documentation root --- docs/404.html | 6 +++++- packages/ra-ui-materialui/src/layout/Error.tsx | 2 +- packages/react-admin/README.md | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/404.html b/docs/404.html index a6465f5a887..749e0dead88 100644 --- a/docs/404.html +++ b/docs/404.html @@ -58,7 +58,11 @@ function replaceNavigationWithVersion(version) { var location = document.location.href.split('#')[0]; var locationSlices = location.split('/'); - var href = [...locationSlices.slice(0, locationSlices.length - 2), version, 'Readme.html'].join('/'); + var href = [ + ...locationSlices.slice(0, locationSlices.length - 2), + version, + 'navigation.html', + ].join('/'); // fetch the new content fetch(href) .then(res => res.text()) diff --git a/packages/ra-ui-materialui/src/layout/Error.tsx b/packages/ra-ui-materialui/src/layout/Error.tsx index 3dd7134a48d..a29a62c5953 100644 --- a/packages/ra-ui-materialui/src/layout/Error.tsx +++ b/packages/ra-ui-materialui/src/layout/Error.tsx @@ -84,7 +84,7 @@ export const Error = (