-
This is probably a noob question but I couldn't find any examples for redirecting with ssr and hydrate. I want to have buttons that when clicked, redirects to a specific URL. For example, Also, I already have actix handler functions defined in the server package. What is the recommended way to call these? Should I make http requests or is there some other way? I may be misunderstanding something, but I didn't see any way to return specific actix errors from server functions. Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
You don't define a route
I think by "server functions" you mean the Actix handler functions you've defined, and not Leptos server functions, right? If you're defining API endpoints in your Actix server, then yeah, the only way to access them is by making HTTP requests, with something like the I don't understand the question about returning Actix errors, I'm sorry to say. |
Beta Was this translation helpful? Give feedback.
I think maybe there was a typo or something earlier, which led me to misunderstand. Are you saying that when the user clicks a link to
/auth
(which is defined in your app) the URL changes but nothing in the UI changes, or when a user clicks a link to/login
(not defined in your app) this happens?If it's to
/auth
and nothing is rendered this is a totally different bug and we should figure that out first. You don't need therel="external"
if it's a link to a route you're actually defining in your app. I led you astray.I am wondering if there are any errors or warnings appearing in the console in your browser dev tools. It seems to me like something is definitely going awry here but I'm no…