We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am using koa-rewrite ver 3.0.0. I specified the following in my app:
app.use(rewrite(/^\/p\/didit/, '/p/customers/section_id/didits'));
After the rewrite is executed, all of the query parameters are gone. I traced it down to the following line in index.js of koa-rewrite module:
ctx.url = dst.replace(/\$(\d+)|(?::(\w+))/g, (_, n, name) => { if (name) return m[map[name].index + 1]; return m[n]; });
I am not sure why setting the url would cause the query parameters to be gone.
The text was updated successfully, but these errors were encountered:
I updated my pattern to include the rest of the URL, which now the ctx.query is populated.
app.use(rewrite(/^\/p\/didit(.+)/, '/p/customers/section_id/didits$1'));
Sorry, something went wrong.
No branches or pull requests
I am using koa-rewrite ver 3.0.0. I specified the following in my app:
After the rewrite is executed, all of the query parameters are gone. I traced it down to the following line in index.js of koa-rewrite module:
I am not sure why setting the url would cause the query parameters to be gone.
The text was updated successfully, but these errors were encountered: