Link vs anchor tags #1721
-
I am working on an application using Laravel and Inertia.js with Vue.js that requires a user authorization via the 3rd party service's authorization endpoint. In my Inertia component, I use the Can you explain why the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
See the docs on external redirects: https://inertiajs.com/redirects#external-redirects |
Beta Was this translation helpful? Give feedback.
-
use return Inertia::location($url); as mentioned in the docs |
Beta Was this translation helpful? Give feedback.
See the docs on external redirects: https://inertiajs.com/redirects#external-redirects
The Inertia
<Link>
component makes an XHR request and it expects an Inertia response. So you'd either have to use the external redirect, or if it's just an external URL, use a regular<a>
tag