Skip to content

Commit

Permalink
[FIXED] sitemap url
Browse files Browse the repository at this point in the history
  • Loading branch information
w8tcha committed May 28, 2024
1 parent 7ff227b commit 85dba57
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion YAF.SampleApp/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ public Startup(IConfiguration configuration, IWebHostEnvironment env)
/// <param name="services">The services.</param>
public void ConfigureServices(IServiceCollection services)
{
services.AddRazorPages(options =>
{
options.Conventions.AddAreaPageRoute("Forums","/SiteMap", "/Sitemap.xml");
}).AddYafRazorPages(this.Environment);

services.AddYafCore(this.Configuration);

services.AddServerSideBlazor();
Expand Down Expand Up @@ -97,7 +102,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
}
else
{
app.UseDeveloperExceptionPage();
app.UseExceptionHandler("/Forums/Error");

app.UseHsts();
}
Expand Down

0 comments on commit 85dba57

Please sign in to comment.