jquerymobilejquery-mobilethemeroller

jQuery not working with hash in URL


Using jQuery Mobile with ThemeRoller theme, the accordion menu delivers a URL with hash when "Cake Sizes" is clicked. The ThemeRoller theme does not load with has in URL.

<div><h3><a href="#">Cakes</a></h3>
<div id="accordion-child">
<div><h3><a href="/cakes/cake-sizes" data-transition="slideup">Cake Sizes</a></h3></div>
<div><h3><a href="/cakes/flavors">Flavors</a></h3></div>
<div><h3><a href="/cakes/gallery">Gallery</a></h3></div>
</div>
</div>

When click "Cake Sizes" URL is http://example.com/#/cakes/cake-sizes

How do I prevent # from ending up in URL or how do I remove it? Does anyone know why Themeroller theme will not load with hash in URL?


Solution

  • Why do you have the # in the href for cakes anyway. Leave it blank and it will behave in the same manner.