opening the page with url from server side #9259
Replies: 2 comments 3 replies
-
You need to redirect the user, there's a redirect function in Remix you can use to create a redirect response, then return it from a loader. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I wanted to open the question on the react-router repo, but I opened it here because the wrong link was given. so I'm closing it. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I didn't know what to write for the title. In short, here's what I want to do.
The project is a server side project. When users come to the /users link, the mechanism on the project converts it to /new-users and sends a request to the project in this way. (there is a mechanism like url gatewey) So the req.url comes as /new-users. here the client side needs a routing called /users when rendering. since there is no such route defined, the page cannot be opened.
To summarise, although /users is written in the browser, the /new-users page defined in the project should be opened. I hope I have explained it correctly. how can I do this?
Beta Was this translation helpful? Give feedback.
All reactions