Sorry, I cannot reproduce that output. Using that menu in the default welcome app, I get the following HTML output:
<ul class="nav navbar-nav"><li class="web2py-menu-first"><a href=" /test/master/address <http://localhost:8000/test/master/address>">Address </a></li><li><a class="nav-link" href="/test/master/address <http://localhost:8000/test/master/address>">None</a></li><li><a class= "nav-link" href="/test/master/address <http://localhost:8000/test/master/address>">Blank</a></li><li class= "web2py-menu-last"><a class="nav-link" href="/test/master/address <http://localhost:8000/test/master/address>">Anchor</a></li></ul> Anthony On Monday, February 26, 2018 at 5:44:05 AM UTC-5, 黄祥 wrote: > > *web2py version :* > 2.16.1-stable+timestamp.2017.11.14.05.54.25 > (Running on Rocket 1.2.6, Python 2.7.10) > > *step to reproduce:* > 1. create new web2py app > 2. edit models/menu.py > response.menu = [ > (T('Address'), False, URL('master', 'address'), [] ), > (A('None', _href='/test/master/address', _class='nav-link'), False, > None), > (A('Blank', _href='/test/master/address', _class='nav-link'), False, > ''), > (None, False, A('Anchor', _href='/test/master/address', > _class='nav-link') ) > ] > 3. inspect with browser the url http://localhost:8000/test/default/index > (focus on menu generated) > result copy outer html > <li class="nav-item "> > <a class="nav-link" href="/test/master/address">Address</a> > </li> > <li class="nav-item "> > <a class="nav-link" href="None"></a><a class="nav-link" > href="/test/master/address">None</a> > </li> > <li class="nav-item "> > <a class="nav-link" href=""></a><a class="nav-link" > href="/test/master/address">Blank</a> > </li> > <li class="nav-item "> > <a class="nav-link" href="<a class=" nav-link"="">Anchor</a>">None > </li> > > thx n best regards, > stifan > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

