Copied to clipboard

Flag this post as spam?

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


  • Vitaly Vasilega 65 posts 187 karma points
    Jun 23, 2017 @ 05:45
    Vitaly Vasilega
    0

    Why characters in the url encoded

    Hi everyone,

    I've created new tree section and I have a code:

    nodes.Add(CreateTreeNode(id + "AccountExecutives", id, queryStrings, "Account Executives", "icon-umb-members", "test/test/grid/accountExecutives?userType=2")));
    

    When I reference a link in the tree, I see a normal URL, but when I go over this link I see the following URL: http://test/umbraco/#/test/test/grid/accountExecutives%3FuserType=2

    Because of this, the object $routeParams returns incorrect data

    {section: "test", tree: "test", method: "grid", id: "productPostcodes?userType=1"}
    

    and had to return

    {userType: "2", section: "test", tree: "test", method: "grid", id: "productPostcodes"}
    

    How to fix it?

    Thanks,

    Vitaly.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies