When using wildcard query string / additional path has gone

There was a bug in original code that removed query string when redirecting to new url.
This shouldn't be the case when using wildcard option