Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
stackghost
70 days ago
|
parent
|
context
|
favorite
| on:
Don't Fuck with Scroll
You can just have the server return a json object instructing the frontend to navigate, accomplishing server redirects.
ftmch
70 days ago
[–]
Javascript can do browser redirects, but those are not actual 301 HTTP redirects.
stackghost
69 days ago
|
parent
[–]
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: