html - Browser won't redirect to other page with anchor -
i'm working on symfony project, want add link redirects user page @ specific anchor. link dynamically generated:
{% if deliveryaddresslist not empty %} <a href="{{ path('vendorname_shop_profile') }}#billingaddress">change billing , delivery addresses</a> <br/> <br/> {% endif %} the route is:
vendorname_shop_profile: path: profile defaults: _controller: vendornameshopbundle:profile:index if write www.mysite.com/profile#billingaddress in browser's url bar, works perfectly, soo click on link nothing.
why happening?
finally figured out, somewhere in js file, on click event on every <a> tag '#' in it's href attribute, there preventdefault()
Comments
Post a Comment