Skip to content

Commit

Permalink
Update Layout.js
Browse files Browse the repository at this point in the history
  • Loading branch information
2haein authored Apr 1, 2021
1 parent 6b73e50 commit eb03cee
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions website/src/theme/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('/')) {
Expand Down

0 comments on commit eb03cee

Please sign in to comment.