pnpcore
pnpcore copied to clipboard
Unable to create a Quick Launch LABEL
Category
- [x] Bug
Cannot create a quick launch "LABEL" item when passing in an empty Url. The method ALWAYS creates a Quick Launch LINK.
Steps to reproduce
After getting a context ... newQlNode = await context.Web.Navigation.QuickLaunch.AddAsync(new NavigationNodeOptions { Title = "My Label", Url = string.Empty, });
Expected behavior
Expect this code to create a Quick Launch "LABEL" instead of a Quick Launch "LINK"
Environment details (development & target environment)
- SDK version: 1.14.0
- OS: Windows 11
- SDK used in: Console App
- Framework: .NET 8.0
- Browser(s): Edge Version 128.0.2739.42 (Official build) (64-bit)
- Tooling: Visual Studio 2020 17.11
- Additional details: