RadMenu and AntiXSS 4.1 library url encoding

1 posts, 0 answers
  1. Jeff
    Jeff avatar
    1 posts
    Member since:
    Aug 2011

    Posted 08 Dec 2011 Link to this post


    I've got a RadMenu using a SiteMapDataSource which reads a web.sitemap that has parent nodes with blank URLs. Previous to adding the AntiXSS 4.1 library as the default encoder type, any urls in the web.sitemap which had blank URL's were rendered with a #. For example, if this is in the sitemap;

    <siteMapNode url="" title="Help"  description="" roles="UserRole">
        <siteMapNode url="~/help/faq.aspx" title="FAQ"  description="FAQ" roles="UserRole" />

    the node for Help list its href attribute like href=#

    However, after adding the AntiXSS 4.1 library the href attribute is rendered like href=%23. Consequently when a user clicks the menu item navigation fails.

    Is it possible to make the menu render blank urls with an empty href attribute? Basically, on some of my parent nodes I don't want the user to be able to navigate anywhere, I just want the menu to display the child nodes.
Back to Top