Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
The problem is that you need intercept and rewrite everything in xhtmlstring. I am guessing that you are trying todo somethig like @Model.MainBody directly into your view. That will work for most cases. But when you have links or you have for instance a block inside and XhtmlString property you will need to use the Html.PropertyFor. If you are not using that helper you will get the behavior you have at the moment sadly. :/
I'm trying to use ToHtmlString(...) on an XHtmlString. When I do that, the links are not rewritten. I still get internal links, not external.
FYI: I'm using PrincipalInfo.AnonymousPrincipal, and I have some events hooked up to ContentRoute.CreatedVirtualPath.