Navigating Back to Start - Does it take me back the exact route?

Hi,

If I were to start a long hike with lots of twists and turns and I got lost, let's say that I use the "Navigate Back to Start" function. Will the GPS take me back the exact route or will it just navigate to the original origin point? I'm trying to figure out if it would lead me to go through all the loops and circles I did or if it would direct me back via the shortest route possible.

I hope I was making sense. Let me know if I need to clarify my question better.

Thanks,