Check empty stringfor globalRedirect. It breaks RedirectPermanent.
This commit is contained in:
parent
df5f491893
commit
da654ed9a0
@ -260,7 +260,7 @@ let
|
|||||||
|
|
||||||
'' else ""}
|
'' else ""}
|
||||||
|
|
||||||
${if cfg.globalRedirect != null then ''
|
${if cfg.globalRedirect != null && cfg.globalRedirect != "" then ''
|
||||||
RedirectPermanent / ${cfg.globalRedirect}
|
RedirectPermanent / ${cfg.globalRedirect}
|
||||||
'' else ""}
|
'' else ""}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user