diff --git a/BTCPayServer/Extensions.cs b/BTCPayServer/Extensions.cs
index e6a3eb648..f008ec059 100644
--- a/BTCPayServer/Extensions.cs
+++ b/BTCPayServer/Extensions.cs
@@ -168,6 +168,13 @@ namespace BTCPayServer
request.Path.ToUriComponent());
}
+ ///
+ /// If 'toto' and RootPath is 'rootpath' returns '/rootpath/toto'
+ /// If 'toto' and RootPath is empty returns '/toto'
+ ///
+ ///
+ ///
+ ///
public static string GetRelativePath(this HttpRequest request, string path)
{
if (path.Length > 0 && path[0] != '/')
@@ -178,7 +185,9 @@ namespace BTCPayServer
}
///
- /// Returns path if path is absolute, or the relative path to this website root
+ /// If 'https://example.com/toto' returns 'https://example.com/toto'
+ /// If 'toto' and RootPath is 'rootpath' returns '/rootpath/toto'
+ /// If 'toto' and RootPath is empty returns '/toto'
///
///
///