From eb03cee09ab6c8ce6b95ce6b1ea6b774aa0499ee Mon Sep 17 00:00:00 2001 From: 2haein <46235778+2haein@users.noreply.github.com> Date: Fri, 2 Apr 2021 07:39:48 +0900 Subject: [PATCH] Update Layout.js --- website/src/theme/Layout.js | 3 --- 1 file changed, 3 deletions(-) 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('/')) {