Skip to content

Commit 3c79dd3

Browse files
authored
Merge pull request #522 from dwarwick/copilot/fix-error-during-demo
Fix PersistentState property visibility and favicon 302 redirect with correct pipeline ordering
2 parents 327c188 + da22e20 commit 3c79dd3

File tree

7 files changed

+9
-3
lines changed

7 files changed

+9
-3
lines changed

JwtIdentity.Client/Pages/Survey/Survey.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class SurveyModel : BlazorBase, IAsyncDisposable
1313
public Guid SurveyId { get; set; }
1414

1515
[PersistentState]
16-
protected SurveyViewModel Survey { get; set; }
16+
public SurveyViewModel Survey { get; set; }
1717

1818
protected List<AnswerViewModel> Answers { get; set; } = new List<AnswerViewModel>();
1919

JwtIdentity.Common/ViewModels/AnswerViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
namespace JwtIdentity.Common.ViewModels
55
{
6+
[JsonConverter(typeof(AnswerViewModelConverter))]
67
public abstract class AnswerViewModel : BaseViewModel
78
{
89
public int Id { get; set; }

JwtIdentity.Common/ViewModels/QuestionViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
namespace JwtIdentity.Common.ViewModels
55
{
6+
[JsonConverter(typeof(QuestionViewModelConverter))]
67
public abstract class QuestionViewModel : BaseViewModel
78
{
89
public int Id { get; set; }

JwtIdentity/Components/App.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
</environment>
3737

3838
<ImportMap />
39+
<link rel="icon" type="image/x-icon" href="favicon.ico" />
3940
<link rel="icon" type="image/png" href="images/icon.png" />
4041
<HeadOutlet />
4142
</head>

JwtIdentity/Program.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,10 @@
368368

369369
app.UseHttpsRedirection();
370370

371+
// Serve static files early in the pipeline (before status code pages)
372+
// This ensures favicon.ico and other static assets are served before 404 handling
373+
app.UseStaticFiles();
374+
371375
//app.UseContentSecurityPolicy();
372376

373377
app.UseAntiforgery();

JwtIdentity/wwwroot/css/app-light.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
2-
:root {
1+
:root {
32
--mud-palette-background: #f8f9fa !important;
43
--mud-palette-surface: #dee2e6 !important;
54
--bodyBackgroundColor: #160F1E;

JwtIdentity/wwwroot/favicon.ico

15 KB
Binary file not shown.

0 commit comments

Comments
 (0)