`navigateTo` is a router helper function that allows creating programmatic navigation for users to navigate within Nuxt application.
`navigateTo` is available on both server side and client side. It can be used within plugins, middleware or can be called directly to perform page navigation.
`navigateTo` redirects to the given path and sets the redirect code to [`302` Found](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302) by default when the redirect takes place on the server side.
This default behavior can be modified by providing different `redirectCode` as an optional parameter. Commonly [`301` Moved Permanently](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/301) can be used for permant redirections.
#### `replace`
- Type: Boolean
By default, `navigateTo` pushes the given route into Vue router instance on client-side.
This behavior can be changed by setting `replace` to `true`, to indicate that given route should be replaced.