I used the tableau template and I love its design and friendness to all devices.

Recently I got a crawl problem and need your help or advices from anybody who have experience:

When tableau is activated, bots will crawl urls with wrong cpath number as well as correct ones.

For example, a product with ID 8066 is only created under category with ID 38, the product URL will be generated like:

domain.com/index.php?main_page=product_info&cPath=38&products_id=8066

with tableau turned on, the crawl bots will not only crawl the link above ,but also crawl:

domain.com/index.php?main_page=product_info&cPath=37&products_id=8066 (wrong one but visitable)
domain.com/index.php?main_page=product_info&cPath=34&products_id=8066(wrong one but visitable)
domain.com/index.php?main_page=product_info&cPath=35&products_id=8066(wrong one but visitable)
.......

as long as there is categories with those numbers like 37,34, 35

I also dig some code like the following, finding out there is no value after cpath and that may cause the above problem,
for example:

<ul class="sub-menu">
<li><a class="category-top" href="https://mydomain.com/index.php?main_page=index&amp;cPath=38">Anatomy | Biology</a>
<ul class="sub--sub-menu">
<li><a href="https://mydomain.com/index.php?main_page=product_info&amp;cPath=&amp;products_id=8054">Test bank for Human Biology 14th Mader 9781259245749</a></li>
<li><a href="https://mydomain.com/index.php?main_page=product_info&amp;cPath=&amp;products_id=8073">Instructor manual for Campbell Biology 11th Urry 9780134433691</a></li>

Could anyone give me guidance about how to fix it?