diff --git a/src/DeloitteDigital.Atlas/Mvc/HtmlExtensions.cs b/src/DeloitteDigital.Atlas/Mvc/HtmlExtensions.cs
index 71b1cc4..b82a146 100644
--- a/src/DeloitteDigital.Atlas/Mvc/HtmlExtensions.cs
+++ b/src/DeloitteDigital.Atlas/Mvc/HtmlExtensions.cs
@@ -18,10 +18,12 @@ public static MvcEditFrame BeginEditFrame(this HtmlHelper helper, string d
return frame;
}
- public static IDisposable BeginLink(this HtmlHelper htmlHelper, ILinkFieldRenderingString linkField, string alternateTag = null, bool skipInPageEditor = false, string linkTagClass = null)
+ public static IDisposable BeginLink(this HtmlHelper htmlHelper, ILinkFieldRenderingString linkField, string alternateTag = null, bool skipInPageEditor = false, bool alternateTagInPageEditor = false, string linkTagClass = null)
{
if (skipInPageEditor && global::Sitecore.Context.PageMode.IsExperienceEditor)
return new EmptyMvcLink();
+ if (alternateTagInPageEditor && global::Sitecore.Context.PageMode.IsExperienceEditor)
+ return new MvcLink(htmlHelper.ViewContext, null, alternateTag, linkTagClass);
return new MvcLink(htmlHelper.ViewContext, linkField, alternateTag, linkTagClass);
}
}