fix(core): useGetToPath returns undefined
#7163
Merged
useGetToPath returns undefined
#7163