From 437988304884320d4129e42f7f3abbf4b29029f5 Mon Sep 17 00:00:00 2001 From: Daniel Harvey Date: Tue, 19 May 2026 00:03:48 -0400 Subject: [PATCH 1/2] fix(routing): add [AllowAnonymous] to public pages so static-SSR AuthorizeRouteView doesn't block unauthenticated requests --- DeepDrftWeb.Client/Pages/Home.razor | 1 + DeepDrftWeb.Client/Pages/TracksView.razor | 1 + 2 files changed, 2 insertions(+) diff --git a/DeepDrftWeb.Client/Pages/Home.razor b/DeepDrftWeb.Client/Pages/Home.razor index d24385b..c5319c0 100644 --- a/DeepDrftWeb.Client/Pages/Home.razor +++ b/DeepDrftWeb.Client/Pages/Home.razor @@ -1,5 +1,6 @@ @page "/" @using DeepDrftWeb.Client.Services +@attribute [Microsoft.AspNetCore.Authorization.AllowAnonymous] Deep DRFT - Electronic Music Collective diff --git a/DeepDrftWeb.Client/Pages/TracksView.razor b/DeepDrftWeb.Client/Pages/TracksView.razor index 5918767..cd64c2a 100644 --- a/DeepDrftWeb.Client/Pages/TracksView.razor +++ b/DeepDrftWeb.Client/Pages/TracksView.razor @@ -1,4 +1,5 @@ @page "/tracks" +@attribute [Microsoft.AspNetCore.Authorization.AllowAnonymous] @using DeepDrftWeb.Client.Controls From 3dfa645101ff47dc760bff2a38c5c2359a4f28ea Mon Sep 17 00:00:00 2001 From: Daniel Harvey Date: Tue, 19 May 2026 00:07:22 -0400 Subject: [PATCH 2/2] style: replace fully-qualified AllowAnonymous with @using + short form in Home and TracksView --- DeepDrftWeb.Client/Pages/Home.razor | 3 ++- DeepDrftWeb.Client/Pages/TracksView.razor | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/DeepDrftWeb.Client/Pages/Home.razor b/DeepDrftWeb.Client/Pages/Home.razor index c5319c0..d6abe88 100644 --- a/DeepDrftWeb.Client/Pages/Home.razor +++ b/DeepDrftWeb.Client/Pages/Home.razor @@ -1,6 +1,7 @@ @page "/" @using DeepDrftWeb.Client.Services -@attribute [Microsoft.AspNetCore.Authorization.AllowAnonymous] +@using Microsoft.AspNetCore.Authorization +@attribute [AllowAnonymous] Deep DRFT - Electronic Music Collective diff --git a/DeepDrftWeb.Client/Pages/TracksView.razor b/DeepDrftWeb.Client/Pages/TracksView.razor index cd64c2a..9babbc8 100644 --- a/DeepDrftWeb.Client/Pages/TracksView.razor +++ b/DeepDrftWeb.Client/Pages/TracksView.razor @@ -1,7 +1,7 @@ @page "/tracks" -@attribute [Microsoft.AspNetCore.Authorization.AllowAnonymous] - +@using Microsoft.AspNetCore.Authorization @using DeepDrftWeb.Client.Controls +@attribute [AllowAnonymous] DeepDrft Track Gallery