Skip to content
Discussion options

You must be logged in to vote

Looks like it was not redirecting because of my browser cache 😅

I also tried https://example.domain.com but it didn't work so that's why i wanted an help here but after disabling browser cache it works now! Here is the answer for others:

// ...

Router::new()
  .route( "/faq",  get(|| async { Redirect::to("https://example.domain.com") }))
  
// ...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by meppu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant