fix hns links redirects
This commit is contained in:
parent
596247dcf9
commit
5576c223ce
|
@ -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
|
||||
|
|
Reference in New Issue