Update redirect code not to add query parameters if they are not present.
Update redirect code not to add query parameters if they are not present.

1self/api,1self/api,1self/api,maximilianhp/api,johnnorris/api,maximilianhp/api,maximilianhp/api,johnnorris/api,1self/api