Skip to content
Discussion options

You must be logged in to vote

Define route for the path containing the param, then read the params and redirect it using the query string.
https://docs.adonisjs.com/guides/response#redirects

router.get('/competition/:id/rounds', async ({ response, params }) => {
  return response.redirect().toPath(`/competition-round?competitionId=${params.id}`)
})

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@zecar
Comment options

@tomgobich
Comment options

Answer selected by zecar
@lncitador
Comment options

@zecar
Comment options

@brunolipe-a
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants