Redir change uri parameter name

one path like “/foo/bar?aa=11&bb=22” , I want to redir and replace parameter name “bb” as “cc”
@toredir {
path /foo/*
redir @toredir {uri}.replace(“&bb=”, “&cc=”)

how to do redir to “/foo/bar?aa=11&cc=22”

Sorry to leave you hanging.

Unfortunately, we don’t really have a good way to handle this right now. We were having some discussion internally thinking about possible solutions, but they’re all error-prone.

I’ve opened an issue to discuss/track improvements for query rewriting:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.