To fix the bug where your pet stops following you or gets stuck open up your inventory and click the little lock in the bottom left and select your pets food. Make sure to feed your pet before doing this. The reason I recommend feeding it before is so that it has lots of stamina before you have to unlock feed it and then lock again. Sometimes you have to open your pet window and snooze the pet first After locking the pet food your pet will follow you quickly never getting stuck
This is mostly for hunters. /comeon can make the pet move to you this can help sometimes credits to greyhiem for sharing this command.
This is the video I got the info from:

