http-proxy-middleware
http-proxy-middleware copied to clipboard
pathRewrite not redirecting to a different page
Expected behavior
When path: https://localhost.com/plans/reports is navigated to, it will redirect to https://localhost.com/plan-analytics/reports
Actual behavior
Continues to https://localhost.com/plans/reports
Setup
proxy: {
'/plans/reports': {
pathRewrite: {'/plans/reports' : '/plan-analytics/reports'}
}
}