We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ff227b commit 85dba57Copy full SHA for 85dba57
1 file changed
YAF.SampleApp/Startup.cs
@@ -70,6 +70,11 @@ public Startup(IConfiguration configuration, IWebHostEnvironment env)
70
/// <param name="services">The services.</param>
71
public void ConfigureServices(IServiceCollection services)
72
{
73
+ services.AddRazorPages(options =>
74
+ {
75
+ options.Conventions.AddAreaPageRoute("Forums","/SiteMap", "/Sitemap.xml");
76
+ }).AddYafRazorPages(this.Environment);
77
+
78
services.AddYafCore(this.Configuration);
79
80
services.AddServerSideBlazor();
@@ -97,7 +102,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
97
102
}
98
103
else
99
104
100
- app.UseDeveloperExceptionPage();
105
+ app.UseExceptionHandler("/Forums/Error");
101
106
107
app.UseHsts();
108
0 commit comments