This is a migrated thread and some comments may be shown as answers.

RadMenu and AntiXSS 4.1 library url encoding

0 Answers 89 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 08 Dec 2011, 05:04 PM
Hi,

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" />
</siteMapNode>


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.

No answers yet. Maybe you can help?

Tags
Menu
Asked by
Jeff
Top achievements
Rank 1
Share this question
or