Hi,
Twitter doesn’t allow query strings in the app dashboard, for them to work you need to put the base url in the app dashboard, and call the full url in POST /oauth/request_token. Please read this info for more details:
https://developer.twitter.com/en/docs/basics/developer-portal/guides/callback-urls.html
Best of luck!