petaki / inertia-go

⏩ Inertia.js server-side adapter for Go.
MIT License
206 stars 11 forks source link

Inertia Location Method #1

Closed tom-on-the-internet closed 3 years ago

tom-on-the-internet commented 3 years ago

This method is mentioned in the Inertia docs at https://inertiajs.com/redirects in the "external redirects" section.

The comparable Laravel (PHP) version is here https://github.com/inertiajs/inertia-laravel/blob/3a08d87bc8de80f774f889918b696e2d3a2d11f1/src/ResponseFactory.php#L83

I really appreciate your work on this adapter. Thank you!

petaki commented 3 years ago

@tom-on-the-internet Thanks for the PR and the reference!

Can you remove the r *http.Request attribute?

tom-on-the-internet commented 3 years ago

@petaki change made!

petaki commented 3 years ago

@tom-on-the-internet Thank you!