mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
Check empty stringfor globalRedirect. It breaks RedirectPermanent.
This commit is contained in:
parent
df5f491893
commit
da654ed9a0
@ -260,7 +260,7 @@ let
|
||||
|
||||
'' else ""}
|
||||
|
||||
${if cfg.globalRedirect != null then ''
|
||||
${if cfg.globalRedirect != null && cfg.globalRedirect != "" then ''
|
||||
RedirectPermanent / ${cfg.globalRedirect}
|
||||
'' else ""}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user