Skip to content

Commit 6bbcf0d

Browse files
committed
change default.cshtml to use static default.html cause Razor fails compiling remotely
1 parent cf0ccd3 commit 6bbcf0d

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/TechStacks/TechStacks.ServiceInterface/ClientRoutesService.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,7 @@ public object Any(FallbackForClientRoutes request)
5656
public object AngularJsApp()
5757
{
5858
//Return default.cshtml for unmatched requests so routing is handled on the client
59-
return new HttpResult
60-
{
61-
View = "/default.cshtml"
62-
};
59+
return new HttpResult(VirtualFileSources.GetFile("/default.html"));
6360
}
6461

6562
public object Any(ClientAllTechnologyStacks request)
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
@inherits ViewPage
2-
<!DOCTYPE html>
1+
<!DOCTYPE html>
32
<!--[if lt IE 7]> <html lang="en" ng-app="techStackApp" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
43
<!--[if IE 7]> <html lang="en" ng-app="techStackApp" class="no-js lt-ie9 lt-ie8"> <![endif]-->
54
<!--[if IE 8]> <html lang="en" ng-app="techStackApp" class="no-js lt-ie9"> <![endif]-->

0 commit comments

Comments
 (0)