Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.

Conversation

@TheAlexLichter
Copy link
Member

πŸ”— Linked issue

Related and resolves partially: nuxt/nuxt#13993

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Adds info about the NavigateToOptions for navigateTo. Also removes the info that it can only be called on client side.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@netlify
Copy link

netlify bot commented May 18, 2022

βœ… Deploy Preview for nuxt3-docs ready!

Name Link
πŸ”¨ Latest commit 7b15ca0
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/62850ffe1b9e4f00085d7b32
😎 Deploy Preview https://deploy-preview-5044--nuxt3-docs.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@danielroe danielroe added the documentation Improvements or additions to documentation label May 18, 2022
Nuxt provides two globally available helpers that can be returned directly from the middleware:

1. `navigateTo (route: string | Route)` - Redirects to the given route, within plugins or middleware. It can also be called directly on the client side to perform page navigation.
1. `navigateTo (route: string | Route, options: { redirectCode: number, replace: boolean )` - Redirects to the given route, within plugins or middleware. It can also be called directly to perform page navigation.
Copy link
Member

@pi0 pi0 May 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related: We could also expose permanent: boolean flag! /cc @danielroe

@pi0 pi0 changed the title docs: add navigateTo options docs(middleware): add navigateTo options May 20, 2022
Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@pi0 pi0 merged commit 557c40c into nuxt:main May 20, 2022
@TheAlexLichter TheAlexLichter deleted the docs/navigateTo branch May 20, 2022 10:05
@pi0 pi0 mentioned this pull request Jun 10, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

3.x documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants