I'm trying to redirect urls from this format:
http://localhost:8080/setup/xyz/?code=some-code
to this:
http://localhost:8080/app/#/setup/xyz/?code=some-code
I've tried with both proxies and rewrites:
historyApiFallback: {
rewrites: [
{ from: /^\/$/, to: '/index.html' },
{ from: /^\/app/, to: '/app.html' },
{ from: /^\/setup/, to: '/app/#/setup' },
]
},
But it doesn't seem to work. Is there a way to write 301 redirects using the dev server?