Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8832

Relative Path in Web Part resolving to path of ascx instead of node url

$
0
0
I have a web part setup with a UrlSelector field that's set with a relative path. LinkCard.Attributes.Add(@href@, NavigationUrl); //NavigationUrl = @./Press-Releases@When the webpart renders, the relative path gets appended to the path of the webpart control.I would expect this relative path to be applied to the NodeAliasPath of the current document, as it seems to do in other webparts. Am I missing something here?EDIT: I've tried ResolveUrl(NavigationUrl) but it just gives me @/CMSWebParts/Press-Releases@

Viewing all articles
Browse latest Browse all 8832

Trending Articles