Check empty stringfor globalRedirect. It breaks RedirectPermanent.

This commit is contained in:
Alex Berg 2013-11-11 15:18:46 +08:00
parent df5f491893
commit da654ed9a0

View File

@ -260,7 +260,7 @@ let
'' else ""}
${if cfg.globalRedirect != null then ''
${if cfg.globalRedirect != null && cfg.globalRedirect != "" then ''
RedirectPermanent / ${cfg.globalRedirect}
'' else ""}