Apply 1 suggestion(s) to 1 file(s)
This commit is contained in:
parent
d64f4edf61
commit
0531f8babf
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ const normalizeRedirectRootNoLogin = (soapboxConfig: SoapboxConfigMap): SoapboxC
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Basically just get the pathname with a leading slash.
|
// 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 !== '/') {
|
if (normalized !== '/') {
|
||||||
return soapboxConfig.set('redirectRootNoLogin', normalized);
|
return soapboxConfig.set('redirectRootNoLogin', normalized);
|
||||||
|
|
Loading…
Reference in a new issue