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

bosnian
Alex Gleason 2023-01-13 19:14:00 -06:00
commit 9f689efa30
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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