Using Menu, all Links have ...

2 posts, 0 answers
  1. Joe
    Joe avatar
    191 posts
    Member since:
    May 2012

    Posted 11 Aug Link to this post

    I'm using the menu component, and in the resulting links in my page it is adding a query string parameter or Length=3, to all of them.. What is this, and how do I get rid of it?

    <div id="mySidenav" class="sidenav">
                   <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
                   <div id="sideNavLinks" style="width: 85%">
                       @(Html.Kendo().Menu()
                           .Name("mainMenu")
                           .Orientation(MenuOrientation.Vertical)
                           .Items(i =>
                           {
                               i.Add().Text("Home").Action("Home", "Map");
                               i.Add().Text("GENERAL MAPS").Items(c =>
                               {
                                   c.Add().Text("SUTA Map").Action("Suta", "Map");
                               });
                               i.Add().Text("COMPLIANCE MAPS").Items(c =>
                               {
                                   c.Add().Text("General License & Registration").Action("LicenseRegistration", "Map");
                                   c.Add().Text("Financial & Bonding Requirements").Action("FinancialBonding", "Map");
                               });
                           })
                       )  
                   </div>
               </div>

     

    But here is what the resulting HTML looks like:

    <div style="padding-left: 25px;">
        <span style="font-size: 20px; font-weight: bolder; color: #f68831">General Maps</span>
        <br />
     
        <div style="padding-left: 25px">
            <a class="main" href="/Vensure.MappingV2/Map/SUTA?Length=3">SUTA Map</a> - Various Data Points relating to the State Unemployment Tax Act, otherwise known as SUTA
        </div>
     
        <p></p>
     
        <span style="font-size: 20px; font-weight: bolder; color: #f68831">Compliance Maps</span>
        <br />
     
        <div style="padding-left: 25px">
            <a class="main" href="/Vensure.MappingV2/Map/LicenseRegistration?Length=3">Licensing & Registration</a> - Various Data Points relating to Licensing and Registration
        </div>
     
        <div style="padding-left: 25px">
            <a class="main" href="/Vensure.MappingV2/Map/FinancialBonding?Length=3">Financial & Bonding Requirements</a> - Various Data Points relating to Financial & Bonding Requirements
        </div>
    </div>

     

    Where is this parameter coming from, and how do I get rid of it?

  2. Joe
    Joe avatar
    191 posts
    Member since:
    May 2012

    Posted 11 Aug Link to this post

    I'm sorry, please disregard this, I was completely mistaken...
Back to Top