Y
Y
Yuri Kulyash2015-11-07 16:46:37
JavaScript
Yuri Kulyash, 2015-11-07 16:46:37

How to connect client-side routing and web-server return?

The problem is that when entering some web server address, a 404 page is returned. Redirecting to index is not an option, since the address is not stored, the wrong page is rendered. How are these two components related? It would be possible to modify the given index page according to the requested address to restore the state from the client, this option is not desirable.
What do you suggest?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Kulyash, 2015-11-08
@rekzi

You can use some unique hash in the URL (+ see comment below). According to the Scheme:
Path X -> Redirect -> index url + unique identifier in the hash -> Path X.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question