diff --git a/website/src/theme/Layout.js b/website/src/theme/Layout.js index 00c75212d5d..f3a9b20e2a0 100644 --- a/website/src/theme/Layout.js +++ b/website/src/theme/Layout.js @@ -2,9 +2,6 @@ import React from 'react'; import OriginalLayout from '@theme-original/Layout'; import {Redirect, useLocation} from '@docusaurus/router'; -// Ensure we don't use trailing slashes, as it can break relative links -// See https://github.com/facebook/react-native-website/issues/2291 -// Inspired by https://jasonwatmore.com/post/2020/03/23/react-router-remove-trailing-slash-from-urls const RemoveTrailingSlashRedirect = () => { const {pathname} = useLocation(); if (pathname.endsWith('/')) {