Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
TimHess committed Feb 16, 2024
1 parent dea22a1 commit fc092ca
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
1 change: 1 addition & 0 deletions src/Client/Components/Layout/SiteFooter.razor
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
<div class="pb-2 font-weight-bold">Projects</div>
<div><Href href="/app-configuration">Application Configuration</Href></div>
<div><Href href="/circuit-breakers">Circuit Breakers</Href></div>
<div><Href href="/logging">Dynamic Logging</Href></div>
<div><Href href="/cloud-management">Management</Href></div>
<div><Href href="/messaging">Messaging</Href></div>
<div><Href href="@(_docsSite.FileShareHome)">Network File Sharing</Href></div>
Expand Down
48 changes: 24 additions & 24 deletions src/Client/Components/Pages/NetworkFileSharing/Index.razor
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
@page "/fileshares"
@page "/network-file-sharing"
@page "/steeltoe-smb"

@inject IHttpContextAccessor HttpContextAccessor
@inject IOptionsSnapshot<DocsSiteOptions> DocsSiteOptions
<GetStarted>
<ComponentName>Network File Sharing</ComponentName>
<Tutorials>
<h1>This page has moved, find the new location <NavLink href="@(DocsSiteOptions.Value.BaseAddress + "/api/v3/fileshares")">here</NavLink></h1>
</Tutorials>
</GetStarted>

@code
{
protected override void OnInitialized()
{
if (HttpContextAccessor.HttpContext != null)
{
var uri = new Uri(DocsSiteOptions.Value.BaseAddress + "/api/v3/fileshares").ToString();
HttpContextAccessor.HttpContext.Response.Redirect(uri, true);
}
}
}
@page "/fileshares"
@page "/network-file-sharing"
@page "/steeltoe-smb"

@inject IHttpContextAccessor HttpContextAccessor
@inject IOptionsSnapshot<DocsSiteOptions> DocsSiteOptions
<GetStarted>
<ComponentName>Network File Sharing</ComponentName>
<Tutorials>
<h1>This page has moved, find the new location <NavLink href="@(DocsSiteOptions.Value.FileShareHome)">here</NavLink></h1>
</Tutorials>
</GetStarted>

@code
{
protected override void OnInitialized()
{
if (HttpContextAccessor.HttpContext != null)
{
var uri = new Uri(DocsSiteOptions.Value.FileShareHome).ToString();
HttpContextAccessor.HttpContext.Response.Redirect(uri, true);
}
}
}

0 comments on commit fc092ca

Please sign in to comment.