From ceeda59360276ae3a37d49e438d8df3c302167b2 Mon Sep 17 00:00:00 2001 From: Pavel Budik Date: Thu, 27 Sep 2018 14:24:35 +0200 Subject: [PATCH] #152 Enable local relative URIs to be processed --- .../Providers/BaseCompositeFileProcessingProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ClientDependency.Core/CompositeFiles/Providers/BaseCompositeFileProcessingProvider.cs b/ClientDependency.Core/CompositeFiles/Providers/BaseCompositeFileProcessingProvider.cs index a98e73d..d89e709 100644 --- a/ClientDependency.Core/CompositeFiles/Providers/BaseCompositeFileProcessingProvider.cs +++ b/ClientDependency.Core/CompositeFiles/Providers/BaseCompositeFileProcessingProvider.cs @@ -214,7 +214,7 @@ public CompositeFileDefinition WritePathToStream(ClientDependencyType type, stri && uri.IsLocalUri(context) //extract the path/query of the request and ensure it starts with the virtual path marker (~/) so that the file //can only be looked up local to this website. - && PathHelper.TryGetFileInfo(uri.PathAndQuery.EnsureStartsWith("/").EnsureStartsWith("~"), context, out var fi)) + && PathHelper.TryGetFileInfo(uri.MakeAbsoluteUri(context).PathAndQuery.EnsureStartsWith("/").EnsureStartsWith("~"), context, out var fi)) { def = WriteFileToStream(sw, fi, type, path, context); }