A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
You can add html attributes in the pagelink html helper like this:
@Html.PageLink(page, null, new {title = page.Name})
You can also create an Html helper that looks something like this:
public static MvcHtmlString PageLink(this HtmlHelper helper, PageData page, string title)
{
return helper.PageLink(page, null, new {title = title});
}
and then use:
@Html.PageLink(page, page.Name)
It it possible to add page title as part of href when rendering @Html.PageLink?
Would like to do this on all pages rendered using @Html.PageLink