From 5576c223ce7a5fb7ace0745a54668e6f0c91d053 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 27 Jan 2021 13:27:41 +0100 Subject: [PATCH] fix hns links redirects --- docker/nginx/conf.d/client.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/nginx/conf.d/client.conf b/docker/nginx/conf.d/client.conf index db69542f..276b8872 100644 --- a/docker/nginx/conf.d/client.conf +++ b/docker/nginx/conf.d/client.conf @@ -212,7 +212,7 @@ server { end ngx.var.skylink = skylink - if request_uri_rest == "/" and skylink_rest ~= "" and skylink_rest ~= "/" then + if request_uri_rest == "/" and skylink_rest ~= nil and skylink_rest ~= "" and skylink_rest ~= "/" then ngx.var.rest = skylink_rest else ngx.var.rest = request_uri_rest