Which sentence is right? It depends where you are going. It depends on where you are going.
Both are fine. Here's a lesson on verbs and prepositions