fixed account-links being confusing for some search engine crawlers
This commit is contained in:
parent
b2a6a9be76
commit
7bb2991ada
|
@ -47,17 +47,17 @@
|
||||||
</EditForm>
|
</EditForm>
|
||||||
<ul class="mt-3 flex flex-col gap-1 text-center">
|
<ul class="mt-3 flex flex-col gap-1 text-center">
|
||||||
<li>
|
<li>
|
||||||
<a class="hover:link" href="Account/ForgotPassword">
|
<a class="hover:link" href="/Account/ForgotPassword">
|
||||||
@Localizer["ResetPassword_Label"]
|
@Localizer["ResetPassword_Label"]
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a class="hover:link" href="@(NavigationManager.GetUriWithQueryParameters("Account/Register", new Dictionary<string, object?> { ["ReturnUrl"] = ReturnUrl }))">
|
<a class="hover:link" href="@(NavigationManager.GetUriWithQueryParameters("/Account/Register", new Dictionary<string, object?> { ["ReturnUrl"] = ReturnUrl }))">
|
||||||
@Localizer["Register_Label"]
|
@Localizer["Register_Label"]
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a class="hover:link" href="Account/ResendEmailConfirmation">
|
<a class="hover:link" href="/Account/ResendEmailConfirmation">
|
||||||
@Localizer["ResendMailConfirmation_Label"]
|
@Localizer["ResendMailConfirmation_Label"]
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
<AuthorizeView Roles="Admin">
|
<AuthorizeView Roles="Admin">
|
||||||
<Authorized>
|
<Authorized>
|
||||||
<li><NavLink href="manage/api">@Localizer["ManageApi_Label"]</NavLink></li>
|
<li><NavLink href="manage/api">@Localizer["ManageApi_Label"]</NavLink></li>
|
||||||
<li><NavLink href="Newsletter">@Localizer["Newsletter_Label"]</NavLink></li>
|
<li><NavLink href="newsletter">@Localizer["Newsletter_Label"]</NavLink></li>
|
||||||
</Authorized>
|
</Authorized>
|
||||||
</AuthorizeView>
|
</AuthorizeView>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
<AuthorizeView>
|
<AuthorizeView>
|
||||||
<Authorized>
|
<Authorized>
|
||||||
<li class="flex gap-2">
|
<li class="flex gap-2">
|
||||||
<NavLink href="Account/Manage">
|
<NavLink href="/Account/Manage">
|
||||||
<span class="line-clamp-2">@context.User.FindFirst("FullName")!.Value</span>
|
<span class="line-clamp-2">@context.User.FindFirst("FullName")!.Value</span>
|
||||||
<div class="w-8">
|
<div class="w-8">
|
||||||
<ProfilePictureComponent Size="100" ProfileId="@context.User.FindFirst("Id")!.Value" />
|
<ProfilePictureComponent Size="100" ProfileId="@context.User.FindFirst("Id")!.Value" />
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
</NavLink>
|
</NavLink>
|
||||||
</li>
|
</li>
|
||||||
<li class="">
|
<li class="">
|
||||||
<form action="Account/Logout" method="post">
|
<form action="/Account/Logout" method="post">
|
||||||
<AntiforgeryToken />
|
<AntiforgeryToken />
|
||||||
<input type="hidden" name="ReturnUrl" value="@_currentUrl" />
|
<input type="hidden" name="ReturnUrl" value="@_currentUrl" />
|
||||||
<button type="submit" class="flex gap-2">
|
<button type="submit" class="flex gap-2">
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
</Authorized>
|
</Authorized>
|
||||||
<NotAuthorized>
|
<NotAuthorized>
|
||||||
<li>
|
<li>
|
||||||
<NavLink href="Account/Login">
|
<NavLink href="/Account/Login">
|
||||||
@Localizer["Login_Label"]
|
@Localizer["Login_Label"]
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="w-5 h-5">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="w-5 h-5">
|
||||||
<path fill-rule="evenodd" d="M17 4.25A2.25 2.25 0 0 0 14.75 2h-5.5A2.25 2.25 0 0 0 7 4.25v2a.75.75 0 0 0 1.5 0v-2a.75.75 0 0 1 .75-.75h5.5a.75.75 0 0 1 .75.75v11.5a.75.75 0 0 1-.75.75h-5.5a.75.75 0 0 1-.75-.75v-2a.75.75 0 0 0-1.5 0v2A2.25 2.25 0 0 0 9.25 18h5.5A2.25 2.25 0 0 0 17 15.75V4.25Z" clip-rule="evenodd" />
|
<path fill-rule="evenodd" d="M17 4.25A2.25 2.25 0 0 0 14.75 2h-5.5A2.25 2.25 0 0 0 7 4.25v2a.75.75 0 0 0 1.5 0v-2a.75.75 0 0 1 .75-.75h5.5a.75.75 0 0 1 .75.75v11.5a.75.75 0 0 1-.75.75h-5.5a.75.75 0 0 1-.75-.75v-2a.75.75 0 0 0-1.5 0v2A2.25 2.25 0 0 0 9.25 18h5.5A2.25 2.25 0 0 0 17 15.75V4.25Z" clip-rule="evenodd" />
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
</li>
|
</li>
|
||||||
@if (Features.Value.NativeSignup) {
|
@if (Features.Value.NativeSignup) {
|
||||||
<li>
|
<li>
|
||||||
<NavLink href="Account/Register">
|
<NavLink href="/Account/Register">
|
||||||
@Localizer["SignUp_Label"]
|
@Localizer["SignUp_Label"]
|
||||||
</NavLink>
|
</NavLink>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue