Fix privacy link (#13262)

This commit is contained in:
Hao Kung 2019-08-20 09:03:07 -07:00 committed by Kevin Pilch
parent 2061713b47
commit 55b271227d
1 changed files with 8 additions and 1 deletions

View File

@ -56,7 +56,14 @@
</div>
<footer class="footer border-top pl-3 text-muted">
<div class="container">
&copy; @DateTime.Now.Year - @Environment.ApplicationName - <a asp-area="" asp-page="Privacy">Privacy</a>
&copy; @DateTime.Now.Year - @Environment.ApplicationName -
@{
var foundPrivacy = Url.Page("/Privacy", new { area = "" });
}
@if (foundPrivacy != null)
{
<a asp-area="" asp-page="/Privacy">Privacy</a>
}
</div>
</footer>