Hello,
Without a link or details about your menus, I'm sorry but we can't provide you any useful help.
We do not have enough element or information to analyze and understand the situation, the context.
We can't even see what you're talking about that "random" even if I'm quite sure that there is nothing random at all.
Now I can tell you that you're using Joomla without SEF ; so basically for the main part, the generation of URL won't be related to the canonical URL.
Using the canonical URL is good because you can be sure that your link will be consistent.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.