Temporarily workaround TryGetPageDirective returning null instead of empty string.
This commit is contained in:
parent
8e5fe56836
commit
b9e397ed3b
|
|
@ -249,7 +249,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.Internal
|
|||
|
||||
if (PageDirectiveFeature.TryGetPageDirective(fileInfo.CreateReadStream, out var template))
|
||||
{
|
||||
compilationInfo.RouteTemplate = template;
|
||||
compilationInfo.RouteTemplate = template ?? string.Empty;
|
||||
}
|
||||
|
||||
results[i] = compilationInfo;
|
||||
|
|
|
|||
Loading…
Reference in New Issue