plugin-client-redirects does not respect baseurl #2980
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
🐛 Bug Report
Tried all kind of combinations but did not get plugin-client-redirects to consider the baseurl set for the project. My expectation would be that the following works if baseurl is set (in my case to baseUrl: '/pages/teamabc/website/public/'), but build step fails complaining that the "to" path is not valid:
[
'@docusaurus/plugin-client-redirects',
{
redirects: [
{
to: 'docs/ec2/overview',
from: ['/docs/ec2/'],
}
],
},
],
I further tried to specify redirect using full URL (but it is complaining that it only expects a path, not URL) and also tried for "to:" with "baseurl + docs/ec2/overview", this is building but it is then duplicating the baseurl when I try to access the link in the website, i.e. it is redirecting to /pages/teamabc/website/public/pages/teamabc/website/public/docs/ec2/overview
Your Environment
The text was updated successfully, but these errors were encountered: