I’m making an asset redirect for my site using the _redirects file.
/asset?id=* http://example.com/asset/:splat 302
What I want to do here is get the output of a parameter, and then use it in the secondary url. For example, this is the original url.
http://othersite.com/asset?id=1
and it redirects to
http://example.com/asset/1
However, instead when I attempt to do this, it redirects to this instead:
http://example.com/asset/:splat?id=1
Which causes a 404.
Is there any way to work around this? Apparently “Query Parameters” are not supported yet, so a workaround would be nice to know.
The application I am developing around requires the ?id= parameter to properly function. I cannot remove it.