Sometimes website item is not showing in category, but product link is working

which version do you use?

If the product category is not shown then Go to the Item Gropu and enable it.

Also check the E-Commerce Settings,

Output:

Thank You!