News for hackers. Stuff that matters.
Re: by stackghost on Friday November 29, 2024 @02:11PM (#42276220)
You can just have the server return a json object instructing the frontend to navigate, accomplishing server redirects.
Re: by ftmch on Friday November 29, 2024 @06:19PM (#42277995)
Javascript can do browser redirects, but those are not actual 301 HTTP redirects.
Re: by stackghost on Friday November 29, 2024 @08:44PM (#42278743)
Yes, what I'm saying is that you can have the backend return e.g. "{ "response": 301, "redirectUrl": "https://example.com" }", and then have the frontend handle that properly, and you get the functional equivalent.

I'm aware that it is different under the hood.