Apply 1 suggestion(s) to 1 file(s)

This commit is contained in:
Corné Dorrestijn 2023-01-12 20:05:04 +00:00 committed by Alex Gleason
parent d64f4edf61
commit 0531f8babf

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);