Forum Discussion
Create a navigation heading node without hyperlink
Hi Mark,
I have been struggling with this too in the past. The only workaround I know about is passing "javascript:return false;" as the URL for you navigation node. This effectively doesn't take user's to another location when navigation node is clicked, but the "hand icon" still appears when hovering over the node (this is not the case with a "real" Heading)
Server-side this was controlled by setting property bag values on the SPNavigationNode (navigationNode.Properties["BlankUrl"] = "True"), but setting these is not available through remote API's.
Hope this helps
- nnmpriemJul 30, 2019Copper Contributor
Thanks Paul! This is unfortunate. I'll try your workaround to see if it still works!
- paulpaschaJul 30, 2019Bronze Contributor
Please note the TechCommunity text editor encoded the URL you should use, I'm unable to find out how to let it render properly but there should be a colon ( : ) between "javascript" and "return true;"