Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    May 09, 2016 @ 12:33
    David Brendel
    0

    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:

    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

Please Sign in or register to post replies

Write your reply to:

Draft