-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #342 from GregFinzer/feature/FixSeeding
Feature/fix seeding
- Loading branch information
Showing
292 changed files
with
1,235 additions
and
598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,39 @@ | ||
@page "/sorry" | ||
@page "/sorry/{mylocation}" | ||
@page "/sorry/{mylocation}/{mypageName}" | ||
@using Serilog | ||
<PageTitle>Sorry</PageTitle> | ||
<h3 class="text-center mt-5">Sorry - the page associated with this link was not found. </h3> | ||
<h1 class="text-center mt-5">Sorry - the page associated with this link was not found. </h1> | ||
@if (mylocation != null && mypageName != null) | ||
{ | ||
<h2 class="text-center mt-5">You were trying to access the page: /@mylocation/@mypageName</h2> | ||
} | ||
else if (mylocation != null) | ||
{ | ||
<h2 class="text-center mt-5">You were trying to access the page: /@mylocation</h2> | ||
} | ||
|
||
<div class="text-center"> | ||
<a href="/" class="btn btn-primary">Return to Home</a> | ||
</div> | ||
|
||
@code { | ||
//TODO: Add notification code. | ||
[Parameter] public string? mylocation { get; set; } | ||
[Parameter] public string? mypageName { get; set; } | ||
|
||
protected override void OnInitialized() | ||
{ | ||
if (mylocation != null && mypageName != null) | ||
{ | ||
Log.Logger.Warning($"404 for Page: /{mylocation}/{mypageName}"); | ||
} | ||
else if (mylocation != null) | ||
{ | ||
Log.Logger.Warning($"404 for Page: /{mylocation}"); | ||
} | ||
else | ||
{ | ||
Log.Logger.Warning($"404 for Page: /sorry"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.