Merge branch 'redirect-root' of gitlab.com:soapbox-pub/soapbox into redirect-root

This commit is contained in:
Alex Gleason 2023-01-13 19:14:00 -06:00
commit 9f689efa30
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -220,7 +220,7 @@ const normalizeRedirectRootNoLogin = (soapboxConfig: SoapboxConfigMap): SoapboxC
try {
// Basically just get the pathname with a leading slash.
const normalized = new URL(redirectRootNoLogin, 'a://').pathname;
const normalized = new URL(redirectRootNoLogin, 'http://a').pathname;
if (normalized !== '/') {
return soapboxConfig.set('redirectRootNoLogin', normalized);