Get Router path

how can we get the Router path in init and setup functions?

You can use the public methods on Router (just import router)

Or use document.location to get the full URL.