Hacker News new | past | comments | ask | show | jobs | submit login

You can just have the server return a json object instructing the frontend to navigate, accomplishing server redirects.



Javascript can do browser redirects, but those are not actual 301 HTTP redirects.


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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: