From 022905ad5d076bbf2969328a6cb5c2daee182763 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 7 May 2022 13:53:15 -0500 Subject: docs --- src/slskd/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 12777a77..91ce72f7 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -609,7 +609,8 @@ namespace slskd // use urlBase. this effectively just removes urlBase from the path, which is // why the enforcement behavior exists above (the actually requested path becomes ambiguous) - // inject urlBase into any html files we serve + // inject urlBase into any html files we serve, and rewrite links to ./static or /static to + // prepend the url base. app.UsePathBase(urlBase); app.UseHTMLRewrite("((\\.)?\\/static)", $"{urlBase}/static"); app.UseHTMLInjection($""); -- cgit v1.2.3