Have you read the Contributing Guidelines on issues?
Prerequisites
Description
I am using docusaurus-plugin-client-redirects
https://github.com/facebook/docusaurus/tree/main/packages/docusaurus-plugin-client-redirects
The plugin creates new pages with this content:
....
<script>
window.location.href = '<%= it.toUrl %>'
</script>
But the new page does not receive the search params.
I would like something like that:
....
<script>
window.location.href = '<%= it.toUrl %>' + window.location.search
</script>
Reproducible demo
No response
Steps to reproduce
- Use the plugin docusaurus-plugin-client-redirects
- Go to a page with search params
- The redirected page does not receive the search params
Expected behavior
The new redirected page receive the search query.
Actual behavior
The new redirected page does not receive the search query
Your environment
- Docusaurus version used: 2.1.0
Self-service
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
I am using docusaurus-plugin-client-redirects
https://github.com/facebook/docusaurus/tree/main/packages/docusaurus-plugin-client-redirects
The plugin creates new pages with this content:
But the new page does not receive the search params.
I would like something like that:
Reproducible demo
No response
Steps to reproduce
Expected behavior
The new redirected page receive the search query.
Actual behavior
The new redirected page does not receive the search query
Your environment
Self-service