From 9ca29b2126d1631b938dd51f435be7e7f0cc09be Mon Sep 17 00:00:00 2001 From: Christopher Yeleighton Date: Fri, 3 Dec 2021 17:55:55 +0100 Subject: [PATCH] Anchor: What if asp-page does not exist (#24192) --- aspnetcore/mvc/views/tag-helpers/built-in/anchor-tag-helper.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aspnetcore/mvc/views/tag-helpers/built-in/anchor-tag-helper.md b/aspnetcore/mvc/views/tag-helpers/built-in/anchor-tag-helper.md index fd227af4c6..68d9b21e41 100644 --- a/aspnetcore/mvc/views/tag-helpers/built-in/anchor-tag-helper.md +++ b/aspnetcore/mvc/views/tag-helpers/built-in/anchor-tag-helper.md @@ -284,6 +284,8 @@ The generated HTML: View Attendee ``` +If the referenced page doesn't exist, a link to the main page is generated. No warning is indicated. + ### asp-page-handler The [asp-page-handler](xref:Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper.PageHandler*) attribute is used with Razor Pages. It's intended for linking to specific page handlers.