This is a migrated thread and some comments may be shown as answers.

Using Menu, all Links have ...

1 Answer 111 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 11 Aug 2017, 09:55 PM

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?

1 Answer, 1 is accepted

Sort by
0
Joe
Top achievements
Rank 1
answered on 11 Aug 2017, 10:07 PM
I'm sorry, please disregard this, I was completely mistaken...
Tags
Menu
Asked by
Joe
Top achievements
Rank 1
Answers by
Joe
Top achievements
Rank 1
Share this question
or