From a28399e31de9e95ed31b7b3cb612878ca111fccd Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Fri, 29 Oct 2021 22:18:33 +0900 Subject: [PATCH] Add warning on ln address if install using rootpath --- BTCPayServer/Views/LNURL/EditLightningAddress.cshtml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/BTCPayServer/Views/LNURL/EditLightningAddress.cshtml b/BTCPayServer/Views/LNURL/EditLightningAddress.cshtml index 484d3d99f..cbb63f0a7 100644 --- a/BTCPayServer/Views/LNURL/EditLightningAddress.cshtml +++ b/BTCPayServer/Views/LNURL/EditLightningAddress.cshtml @@ -27,6 +27,15 @@ } +@if (Context.Request.PathBase.ToString() != string.Empty) +{ + +} +

@ViewData["PageTitle"]

@@ -99,7 +108,7 @@ - var address = $"{Model.Items[index].Username}@{Context.Request.Host.ToUriComponent()}{Context.Request.PathBase}"; + var address = $"{Model.Items[index].Username}@{Context.Request.Host.ToUriComponent()}";