-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
24 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
48 changes: 24 additions & 24 deletions
48
src/Client/Components/Pages/NetworkFileSharing/Index.razor
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,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); | ||
} | ||
} | ||
} |