diff --git a/app/soapbox/features/public-layout/index.tsx b/app/soapbox/features/public-layout/index.tsx
index 0fdc8b946..3671b5ae8 100644
--- a/app/soapbox/features/public-layout/index.tsx
+++ b/app/soapbox/features/public-layout/index.tsx
@@ -2,7 +2,7 @@ import React from 'react';
import { Switch, Route, Redirect } from 'react-router-dom';
import LandingGradient from 'soapbox/components/landing-gradient';
-import { useAppSelector } from 'soapbox/hooks';
+import { useAppSelector, useSoapboxConfig } from 'soapbox/hooks';
import { isStandalone } from 'soapbox/utils/state';
import AboutPage from '../about';
@@ -13,6 +13,9 @@ import Header from './components/header';
const PublicLayout = () => {
const standalone = useAppSelector((state) => isStandalone(state));
+ const soapboxConfig = useSoapboxConfig();
+
+ const shouldRedirectFromRoot = soapboxConfig.redirectRootNoLogin && !soapboxConfig.redirectRootNoLogin.match(/^\/?$/);
if (standalone) {
return