Hacker News new | ask | show | jobs
by ftmch 565 days ago
Javascript can do browser redirects, but those are not actual 301 HTTP redirects.
1 comments

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.