Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all,
I'm currently having a smll issue with url encoding with custom node url. I want to add a url which contains an "?". If I use it directly in my string it gets encoded and thus the url is wrong and my angular breaks.
Here is what I currently have:
CreateTreeNode("ne-" + id.Replace("c-", ""), id, queryStrings, textService.Localize("EventCalendar/tree_normalEvents", CultureInfo.CurrentCulture), "icon-music", false, FormDataCollectionExtensions.GetValue<string>(queryStrings, "application") + StringExtensions.EnsureStartsWith(this.TreeAlias, '/') + "/overviewEvents/" + id.Replace("c-", "") + "?" + DateTime.Now.Ticks)
I also tried to use HttpUtility.UrlEncode() to pre encode the "?" but that doesn't do the trick.
Any suggestions?
Thanks in advance,
David
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Custom node url encoding
Hi all,
I'm currently having a smll issue with url encoding with custom node url. I want to add a url which contains an "?". If I use it directly in my string it gets encoded and thus the url is wrong and my angular breaks.
Here is what I currently have:
I also tried to use HttpUtility.UrlEncode() to pre encode the "?" but that doesn't do the trick.
Any suggestions?
Thanks in advance,
David
is working on a reply...